Skip to content

Commit e99cd3e

Browse files
Sa1GurGuriy Samarin
andauthored
removing FluentAssertions from dependencies (valkey-io#3013)
Signed-off-by: Guriy Samarin <[email protected]> Co-authored-by: Guriy Samarin <[email protected]>
1 parent f7f2108 commit e99cd3e

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

csharp/tests/Integration/GetAndSet.cs

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
using System.Runtime.InteropServices;
44

5-
using FluentAssertions;
6-
75
using Glide;
86

97
using static Tests.Integration.IntegrationTestBase;
@@ -13,12 +11,8 @@ public class GetAndSet : IClassFixture<IntegrationTestBase>
1311
{
1412
private async Task GetAndSetValues(AsyncClient client, string key, string value)
1513
{
16-
_ = (await client.SetAsync(key, value))
17-
.Should()
18-
.Be("OK");
19-
_ = (await client.GetAsync(key))
20-
.Should()
21-
.Be(value);
14+
Assert.Equal("OK", await client.SetAsync(key, value));
15+
Assert.Equal(value, await client.GetAsync(key));
2216
}
2317

2418
private async Task GetAndSetRandomValues(AsyncClient client)
@@ -48,9 +42,7 @@ public async Task GetAndSetCanHandleNonASCIIUnicode()
4842
public async Task GetReturnsNull()
4943
{
5044
using AsyncClient client = new("localhost", TestConfiguration.STANDALONE_PORTS[0], false);
51-
_ = (await client.GetAsync(Guid.NewGuid().ToString()))
52-
.Should()
53-
.BeNull();
45+
Assert.Null(await client.GetAsync(Guid.NewGuid().ToString()));
5446
}
5547

5648
[Fact]
@@ -111,9 +103,7 @@ public void ConcurrentOperationsWork()
111103
}
112104
else
113105
{
114-
_ = (await client.GetAsync(Guid.NewGuid().ToString()))
115-
.Should()
116-
.BeNull();
106+
Assert.Null(await client.GetAsync(Guid.NewGuid().ToString()));
117107
}
118108
}
119109
}));

csharp/tests/tests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2929
<PrivateAssets>all</PrivateAssets>
3030
</PackageReference>
31-
<PackageReference Include="FluentAssertions" Version="6.12.0" />
3231
</ItemGroup>
3332

3433
<ItemGroup>

0 commit comments

Comments
 (0)