1- // *
1+ // *
22// *****************************************************************************
33// *
44// * Copyright (c) 2025 Deskasoft International
@@ -42,7 +42,7 @@ public class FactoryTests
4242 [ Fact ]
4343 public void Factory_CreateInstance_ValidInputs_Works ( )
4444 {
45- var instance = HashFactory < ICRC > . Instance . Create ( CRCConfig . CRC32 ) ;
45+ var instance = HashFactory < ICRC > . Create ( CRCConfig . CRC32 ) ;
4646 Assert . NotNull ( instance ) ;
4747 Assert . IsType < CRC_Implementation > ( instance ) ;
4848 }
@@ -54,7 +54,7 @@ public void Factory_CreateInstance_Null_Throws()
5454 "The provided type 'HashifyNet.Algorithms.CRC.CRC_Implementation' is not an interface. (Parameter 'type')" ,
5555 Assert . Throws < ArgumentException > ( ( ) =>
5656 {
57- HashFactory < CRC_Implementation > . Instance . Create ( ) ;
57+ HashFactory < CRC_Implementation > . Create ( ) ;
5858 } ) . Message ) ;
5959 }
6060
@@ -93,7 +93,7 @@ public void Factory_GetAllNonCryptographicHashAlgorithms_Works()
9393 [ Fact ]
9494 public void Factory_ComputeNonCryptographicHashes_Works ( )
9595 {
96- IHashFunctionBase [ ] functions = HashFactory . Instance . GetHashFunctions ( HashFunctionType . Noncryptographic , new Dictionary < Type , IHashConfigBase > ( )
96+ IHashFunctionBase [ ] functions = HashFactory . GetHashFunctions ( HashFunctionType . Noncryptographic , new Dictionary < Type , IHashConfigBase > ( )
9797 {
9898 { typeof ( ICRC ) , CRCConfig . CRC32 } ,
9999 { typeof ( IPearson ) , new WikipediaPearsonConfig ( ) } ,
@@ -118,7 +118,7 @@ public void Factory_ComputeNonCryptographicHashes_Works()
118118 [ Fact ]
119119 public void Factory_ComputeCryptographicHashes_Works ( )
120120 {
121- IHashFunctionBase [ ] functions = HashFactory . Instance . GetHashFunctions ( HashFunctionType . Cryptographic , new Dictionary < Type , IHashConfigBase > ( )
121+ IHashFunctionBase [ ] functions = HashFactory . GetHashFunctions ( HashFunctionType . Cryptographic , new Dictionary < Type , IHashConfigBase > ( )
122122 {
123123 { typeof ( IArgon2id ) , Argon2idConfig . OWASP_Standard }
124124 } , typeof ( IHashAlgorithmWrapper ) ) ;
@@ -144,15 +144,15 @@ public void Factory_GetWithType_Works()
144144 Type type = typeof ( ICRC ) ;
145145 Assert . NotNull ( type ) ;
146146
147- var instance = HashFactory . Instance . Create ( type , CRCConfig . CRC32 ) ;
147+ var instance = HashFactory . Create ( type , CRCConfig . CRC32 ) ;
148148 Assert . NotNull ( instance ) ;
149149 Assert . IsType < CRC_Implementation > ( instance ) ;
150150 }
151151
152152 [ Fact ]
153153 public void Factory_CreateInstance_WithConfig_Works ( )
154154 {
155- ICRC crc = HashFactory < ICRC > . Instance . Create ( CRCConfig . CRC7 ) ;
155+ ICRC crc = HashFactory < ICRC > . Create ( CRCConfig . CRC7 ) ;
156156 Assert . NotNull ( crc ) ;
157157 Assert . IsType < CRC_Implementation > ( crc ) ;
158158 Assert . Equal ( CRCConfig . CRC7 . HashSizeInBits , crc . Config . HashSizeInBits ) ;
@@ -164,4 +164,3 @@ public void Factory_CreateInstance_WithConfig_Works()
164164 }
165165 }
166166}
167-
0 commit comments