22using EncryptedConfigValue . Crypto . Algorithm ;
33using EncryptedConfigValue . Crypto . Util ;
44using EncryptedConfigValue . Module ;
5- using FluentAssertions ;
5+ using Shouldly ;
66using System ;
77using System . Collections . Generic ;
88using System . IO ;
@@ -63,7 +63,7 @@ public void Dispose()
6363 public void ConstantsAreNotModified ( )
6464 {
6565 substitutor . TryReplace ( "abc" , out var output ) ;
66- output . Should ( ) . BeEquivalentTo ( "abc" ) ;
66+ output . ShouldBeEquivalentTo ( "abc" ) ;
6767 }
6868
6969 [ Fact ]
@@ -76,30 +76,30 @@ public void InvalidEncryptedVariablesThrowStringSubstitutionException()
7676 }
7777 catch ( StringSubstitutionException e )
7878 {
79- e . Value . Should ( ) . BeEquivalentTo ( "enc:invalid-contents" ) ;
80- e . Field . Should ( ) . BeEmpty ( ) ;
79+ e . Value . ShouldBeEquivalentTo ( "enc:invalid-contents" ) ;
80+ e . Field . ShouldBeEmpty ( ) ;
8181 }
8282 }
8383
8484 [ Fact ]
8585 public void NonEncryptedVariablesAreNotModified ( )
8686 {
8787 substitutor . TryReplace ( "${abc}" , out var output ) ;
88- output . Should ( ) . BeEquivalentTo ( "${abc}" ) ;
88+ output . ShouldBeEquivalentTo ( "${abc}" ) ;
8989 }
9090
9191 [ Fact ]
9292 public void VariableIsDecrypted ( )
9393 {
9494 substitutor . TryReplace ( "${" + Encrypt ( "abc" ) + "}" , out var output ) ;
95- output . Should ( ) . BeEquivalentTo ( "abc" ) ;
95+ output . ShouldBeEquivalentTo ( "abc" ) ;
9696 }
9797
9898 [ Fact ]
9999 public void VariableIsDecryptedWithRegex ( )
100100 {
101101 substitutor . TryReplace ( "${" + Encrypt ( "$5" ) + "}" , out var output ) ;
102- output . Should ( ) . Be ( "$5" ) ;
102+ output . ShouldBe ( "$5" ) ;
103103 }
104104
105105 [ Fact ]
@@ -110,7 +110,7 @@ public void DecryptsMultiple()
110110 var hello = "${" + Encrypt ( "enc:hello" ) + "}" ;
111111 var source = abc + ":" + def + '.' + hello ;
112112 substitutor . TryReplace ( source , out var output ) ;
113- output . Should ( ) . Be ( "abc:def.enc:hello" ) ;
113+ output . ShouldBe ( "abc:def.enc:hello" ) ;
114114 }
115115
116116 [ Fact ]
@@ -120,7 +120,7 @@ public void DecryptsWithPlaceholders()
120120 var def = "${" + Encrypt ( "${enc:test}" ) + "}" ;
121121 var source = abc + ":" + def ;
122122 substitutor . TryReplace ( source , out var output ) ;
123- output . Should ( ) . BeEquivalentTo ( "abc:${enc:test}" ) ;
123+ output . ShouldBeEquivalentTo ( "abc:${enc:test}" ) ;
124124 }
125125
126126 [ SkippableTheory ]
@@ -131,7 +131,7 @@ public void PropertyTestValues(string plaintext)
131131 Skip . If ( Encoding . UTF8 . GetBytes ( plaintext ) . Length > 190 ) ;
132132 EnsureTestKeysExist ( ) ;
133133 substitutor . TryReplace ( "${" + Encrypt ( plaintext ) + "}" , out var output ) ;
134- output . Should ( ) . BeEquivalentTo ( plaintext ) ;
134+ output . ShouldBeEquivalentTo ( plaintext ) ;
135135 }
136136
137137 public static IEnumerable < object [ ] > PropertyTestData ( int tries )
0 commit comments