@@ -45,7 +45,7 @@ public void MetroHash128_Implementation_Constructor_Config_IsNull_Throws()
4545 Assert . Equal (
4646 "config" ,
4747 Assert . Throws < ArgumentNullException > (
48- ( ) => HashFactory < IMetroHash , IMetroHashConfig > . Instance . Create ( null ) )
48+ ( ) => HashFactory < IMetroHash , IMetroHashConfig > . Create ( null ) )
4949 . ParamName ) ;
5050 }
5151
@@ -61,7 +61,7 @@ public void MetroHash128_Implementation_Constructor_Config_IsCloned()
6161 }
6262
6363 GC . KeepAlive (
64- HashFactory < IMetroHash , IMetroHashConfig > . Instance . Create ( metroHashConfigMock . Object ) ) ;
64+ HashFactory < IMetroHash , IMetroHashConfig > . Create ( metroHashConfigMock . Object ) ) ;
6565
6666 metroHashConfigMock . Verify ( bc => bc . Clone ( ) , Times . Once ) ;
6767
@@ -81,7 +81,7 @@ public void MetroHash128_Implementation_Config_IsCloneOfClone()
8181 var metroHashConfig2 = Mock . Of < IMetroHashConfig > ( mhc => mhc . HashSizeInBits == 128 && mhc . Clone ( ) == metroHashConfig3 ) ;
8282 var metroHashConfig = Mock . Of < IMetroHashConfig > ( mhc => mhc . HashSizeInBits == 128 && mhc . Clone ( ) == metroHashConfig2 ) ;
8383
84- var metroHash = HashFactory < IMetroHash , IMetroHashConfig > . Instance . Create ( metroHashConfig ) ;
84+ var metroHash = HashFactory < IMetroHash , IMetroHashConfig > . Create ( metroHashConfig ) ;
8585
8686 Assert . Equal ( metroHashConfig3 , metroHash . Config ) ;
8787 }
@@ -94,7 +94,7 @@ public void MetroHash128_Implementation_Config_IsCloneOfClone()
9494 public void MetroHash128_Implementation_HashSizeInBits_Is128 ( )
9595 {
9696 var metroHashConfig = Mock . Of < IMetroHashConfig > ( mhc => mhc . Clone ( ) == mhc && mhc . HashSizeInBits == 128 ) ;
97- var metroHash = HashFactory < IMetroHash , IMetroHashConfig > . Instance . Create ( metroHashConfig ) ;
97+ var metroHash = HashFactory < IMetroHash , IMetroHashConfig > . Create ( metroHashConfig ) ;
9898
9999 Assert . Equal ( 128 , metroHash . Config . HashSizeInBits ) ;
100100 }
@@ -114,7 +114,7 @@ public class IStreamableHashFunction_Tests
114114 } ;
115115
116116 protected override IMetroHash CreateHashFunction ( int hashSize ) =>
117- HashFactory < IMetroHash , IMetroHashConfig > . Instance . Create ( new MetroHashConfig ( ) { HashSizeInBits = 128 } ) ;
117+ HashFactory < IMetroHash , IMetroHashConfig > . Create ( new MetroHashConfig ( ) { HashSizeInBits = 128 } ) ;
118118 }
119119
120120 public class IStreamableHashFunction_Tests_WithSeed
@@ -130,7 +130,8 @@ public class IStreamableHashFunction_Tests_WithSeed
130130 } ;
131131
132132 protected override IMetroHash CreateHashFunction ( int hashSize ) =>
133- HashFactory < IMetroHash , IMetroHashConfig > . Instance . Create ( new MetroHashConfig ( ) { HashSizeInBits = 128 , Seed = 1 } ) ;
133+ HashFactory < IMetroHash , IMetroHashConfig > . Create ( new MetroHashConfig ( ) { HashSizeInBits = 128 , Seed = 1 } ) ;
134134 }
135135 }
136- }
136+
137+ }
0 commit comments