Skip to content

Commit

Permalink
fix: fix some test warning and update json component for EasyCaching.…
Browse files Browse the repository at this point in the history
…LiteDB
  • Loading branch information
Memoyu committed Sep 19, 2023
1 parent 4e939bf commit c34e22e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 44 deletions.
2 changes: 1 addition & 1 deletion src/EasyCaching.LiteDB/EasyCaching.LiteDB.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="LiteDB" Version="5.0.13" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,6 @@ protected override void Get_Parallel_Should_Succeed()
{
}

public override Task GetAllByPrefix_Async_Should_Throw_ArgumentNullException_When_Prefix_IsNullOrWhiteSpace(
string preifx)
{
return Task.CompletedTask;
}

public override void GetAllByPrefix_Should_Throw_ArgumentNullException_When_CacheKey_IsNullOrWhiteSpace(
string prefix)
{
}

protected override Task Get_Count_Async_With_Prefix_Should_Succeed()
{
return Task.CompletedTask;
Expand Down Expand Up @@ -132,31 +121,10 @@ protected override void GetExpiration_Should_Succeed()
{
}

public override void RemoveByPattern_Should_Succeed()
{
}

public override Task RemoveByPatternAsync_Should_Succeed()
{
return Task.CompletedTask;
}

public override Task RemoveByPrefix_Async_Should_Throw_ArgumentNullException_When_Prefix_IsNullOrWhiteSpace(
string preifx)

{
return Task.CompletedTask;
}

protected override void RemoveByPrefix_Should_Succeed()
{
}

public override void RemoveByPrefix_Should_Throw_ArgumentNullException_When_CacheKey_IsNullOrWhiteSpace(
string prefix)
{
}

protected override Task RemoveByPrefixAsync_Should_Succeed()
{
return Task.CompletedTask;
Expand Down
11 changes: 0 additions & 11 deletions test/EasyCaching.UnitTests/CachingTests/MemcachedProviderTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,6 @@ protected override void GetByPrefix_Should_Succeed()
{
}

[Fact]
public override void RemoveByPattern_Should_Succeed()
{
}

[Fact]
public override async Task RemoveByPatternAsync_Should_Succeed()
{
await Task.FromResult(1);
}

[Fact]
protected override async Task GetByPrefixAsync_Should_Succeed()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public MemoryPackSerializerTest()
}

//This should be overrided becuse it is not supported by memory-pack
[Fact]
public override void DeserializeObject_should_Succeed()
{
Person input = new("test", "test1");
Expand Down

0 comments on commit c34e22e

Please sign in to comment.