Skip to content

Commit acdfe69

Browse files
authored
Add legacy preprocessor define condition to Universal Tests
Signed-off-by: Xen <lordofxen@deskasoft.com>
1 parent bca7e05 commit acdfe69

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

HashifyNet.UnitTests/Core/UniversalTest.cs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// *
1+
// *
22
// *****************************************************************************
33
// *
44
// * Copyright (c) 2025 Deskasoft International
@@ -32,9 +32,13 @@
3232
using HashifyNet.Algorithms.CRC;
3333
using HashifyNet.Algorithms.FNV;
3434
using HashifyNet.Algorithms.Pearson;
35+
36+
#if !LEGACY
3537
using HashifyNet.Algorithms.SHA3_256;
3638
using HashifyNet.Algorithms.SHA3_384;
3739
using HashifyNet.Algorithms.SHA3_512;
40+
#endif
41+
3842
using HashifyNet.UnitTests.Utilities;
3943
using System.Diagnostics;
4044

@@ -585,7 +589,13 @@ public void RunUniversalTest()
585589

586590
// Cryptographic Forced Defaults
587591
{ typeof(IArgon2id), new Argon2idConfigProfileOWASP() }
588-
}, HashFactory.GetUnavailableHashAlgorithms());
592+
593+
594+
}
595+
#if !LEGACY
596+
, HashFactory.GetUnavailableHashAlgorithms()
597+
#endif
598+
);
589599

590600
Assert.NotNull(all);
591601
Assert.NotEmpty(all);

0 commit comments

Comments
 (0)