Skip to content

Commit 3dda5c9

Browse files
authored
1 parent ebb31bb commit 3dda5c9

File tree

1 file changed

+4
-0
lines changed
  • test/Renci.SshNet.Tests/Classes/Security/Cryptography

1 file changed

+4
-0
lines changed

test/Renci.SshNet.Tests/Classes/Security/Cryptography/DsaKeyTest.cs

+4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ private static DsaKey GetDsaKey(string fileName, string passPhrase = null)
2424
// This is just to line up any differences in the assertion message.
2525
private static void AssertEqual(byte[] actualBytes, string expectedHex)
2626
{
27+
#if NET
28+
string actualHex = Convert.ToHexString(actualBytes);
29+
#else
2730
string actualHex = BitConverter.ToString(actualBytes).Replace("-", "");
31+
#endif
2832

2933
Assert.AreEqual(expectedHex, actualHex,
3034
$"{Environment.NewLine}Expected: {expectedHex}{Environment.NewLine} Actual: {actualHex}");

0 commit comments

Comments
 (0)