Skip to content

[pull] dev from dotnetcore:dev #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
os: [ windows-latest ]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup .NET SDK 6.0.x
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/buildandtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ jobs:
- 11212:11211

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup .NET SDK 6.0.x
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Build with dotnet
run: dotnet build --configuration Release /home/runner/work/EasyCaching/EasyCaching/EasyCaching.sln
- name: Pack with dotnet
run: dotnet pack /home/runner/work/EasyCaching/EasyCaching/EasyCaching.sln --version-suffix alpha`date +%Y%m%d%H%M%S` -o /home/runner/work/nugetpkgs -c Release --no-build
- name: Upload artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: nugetpkgs
path: /home/runner/work/nugetpkgs
Expand All @@ -35,7 +35,7 @@ jobs:

steps:
- name: Download build artifacts
uses: actions/download-artifact@v1
uses: actions/download-artifact@v3
with:
name: nugetpkgs
- name: list nugetpkgs
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release_stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Build with dotnet
run: dotnet build --configuration Release /home/runner/work/EasyCaching/EasyCaching/EasyCaching.sln
- name: Pack with dotnet
run: dotnet pack /home/runner/work/EasyCaching/EasyCaching/EasyCaching.sln -o /home/runner/work/nugetpkgs -c Release --no-build
- name: Upload artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: nugetpkgs
path: /home/runner/work/nugetpkgs
Expand All @@ -33,7 +33,7 @@ jobs:

steps:
- name: Download build artifacts
uses: actions/download-artifact@v1
uses: actions/download-artifact@v3
with:
name: nugetpkgs
- name: list nugetpkgs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,49 @@ 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;
}

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;
}

public override void RemoveByPrefix_Should_Throw_ArgumentNullException_When_CacheKey_IsNullOrWhiteSpace(
string prefix)
{
}

protected override Task Get_Count_Async_Without_Prefix_Should_Succeed()
{
return Task.CompletedTask;
}


protected override void Get_Count_With_Prefix_Should_Succeed()
{
}
Expand All @@ -107,6 +140,8 @@ protected override Task GetByPrefixAsync_Should_Succeed()
return Task.CompletedTask;
}



protected override Task GetByPrefixAsync_With_Not_Existed_Prefix_Should_Return_Empty_Dict()
{
return Task.CompletedTask;
Expand Down
11 changes: 11 additions & 0 deletions test/EasyCaching.UnitTests/CachingTests/MemcachedProviderTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,17 @@ 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