From 677939d0b3fe7e2a637662741b438fdaa25c20cd Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Tue, 7 Jan 2020 14:11:14 +0100 Subject: [PATCH] Ensures that unit test dependencies are only effective when using debug mode --- Ed25519/Ed25519.csproj | 6 +++--- Ed25519/Tests/EdPointTests.cs | 6 +++++- Ed25519/Tests/SignerTests.cs | 6 +++++- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Ed25519/Ed25519.csproj b/Ed25519/Ed25519.csproj index b097b07..639a56e 100644 --- a/Ed25519/Ed25519.csproj +++ b/Ed25519/Ed25519.csproj @@ -26,9 +26,9 @@ - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Ed25519/Tests/EdPointTests.cs b/Ed25519/Tests/EdPointTests.cs index d12c20d..eb697e7 100644 --- a/Ed25519/Tests/EdPointTests.cs +++ b/Ed25519/Tests/EdPointTests.cs @@ -1,4 +1,6 @@ -using System; +#if DEBUG + +using System; using System.Collections.Generic; using System.Numerics; using System.Text; @@ -36,3 +38,5 @@ namespace Ed25519 } } } + +#endif \ No newline at end of file diff --git a/Ed25519/Tests/SignerTests.cs b/Ed25519/Tests/SignerTests.cs index a19f7a9..ea36897 100644 --- a/Ed25519/Tests/SignerTests.cs +++ b/Ed25519/Tests/SignerTests.cs @@ -1,4 +1,6 @@ -using System; +#if DEBUG + +using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; @@ -908,3 +910,5 @@ namespace Ed25519 } } } + +#endif \ No newline at end of file