@@ -30,13 +30,13 @@ public async Task ValidateSecurityKey()
3030 var validator = new SecurityKeyValidator ( configuration , options , logger ) ;
3131
3232 var result = await validator . Validate ( "test" ) ;
33- result . Should ( ) . BeFalse ( ) ;
33+ Assert . False ( result ) ;
3434
3535 result = await validator . Validate ( "this-is-test" ) ;
36- result . Should ( ) . BeTrue ( ) ;
36+ Assert . True ( result ) ;
3737
3838 result = await validator . Validate ( "another-test" ) ;
39- result . Should ( ) . BeTrue ( ) ;
39+ Assert . True ( result ) ;
4040 }
4141
4242 [ Fact ]
@@ -63,10 +63,10 @@ public async Task ValidateSecurityKeyCaseAsync()
6363 var validator = new SecurityKeyValidator ( configuration , options , logger ) ;
6464
6565 var result = await validator . Validate ( "this-is-test" ) ;
66- result . Should ( ) . BeTrue ( ) ;
66+ Assert . True ( result ) ;
6767
6868 result = await validator . Validate ( "THIS-IS-TEST" ) ;
69- result . Should ( ) . BeFalse ( ) ;
69+ Assert . False ( result ) ;
7070 }
7171
7272 [ Fact ]
@@ -87,12 +87,12 @@ public async Task ValidateNoKeyFound()
8787 var validator = new SecurityKeyValidator ( configuration , options , logger ) ;
8888
8989 var result = await validator . Validate ( "test" ) ;
90- result . Should ( ) . BeFalse ( ) ;
90+ Assert . False ( result ) ;
9191
9292 result = await validator . Validate ( "this-is-test" ) ;
93- result . Should ( ) . BeFalse ( ) ;
93+ Assert . False ( result ) ;
9494
9595 result = await validator . Validate ( "another-test" ) ;
96- result . Should ( ) . BeFalse ( ) ;
96+ Assert . False ( result ) ;
9797 }
9898}
0 commit comments