Skip to content

Commit 6ecbcb1

Browse files
authored
Add Factory_GetConfigProfiles_Create_Works test
Signed-off-by: Xen <lordofxen@deskasoft.com>
1 parent 7135b9a commit 6ecbcb1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

HashifyNet.UnitTests/Core/FactoryTests.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,5 +241,21 @@ public void Factory_GetConfigProfiles_HasUniqueNames()
241241
}
242242
}
243243
}
244+
245+
[Fact]
246+
public void Factory_GetConfigProfiles_Create_Works()
247+
{
248+
var algorithms = HashFactory.GetHashAlgorithms(HashFunctionType.Cryptographic | HashFunctionType.Noncryptographic);
249+
foreach (var algorithm in algorithms)
250+
{
251+
var profiles = HashFactory.GetConfigProfiles(algorithm);
252+
foreach (var profile in profiles)
253+
{
254+
IHashConfigBase config = profile.Create();
255+
Assert.NotNull(config);
256+
Assert.IsType(profile.ProfileType, config);
257+
}
258+
}
259+
}
244260
}
245261
}

0 commit comments

Comments
 (0)