File tree Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Original file line number Diff line number Diff line change 22
33using System . Runtime . InteropServices ;
44
5- using FluentAssertions ;
6-
75using Glide ;
86
97using 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 } ) ) ;
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments