From 8e571cb358e8402291a12f4c9c22cc65610b04c8 Mon Sep 17 00:00:00 2001 From: Maytham Fahmi <9260645+maythamfahmi@users.noreply.github.com> Date: Sun, 20 Oct 2024 11:13:57 +0200 Subject: [PATCH] #86 update text messge for ignore, --- CryptoNet.UnitTests/CryptoNetRsaTests.cs | 8 ++++---- Dockerfile | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CryptoNet.UnitTests/CryptoNetRsaTests.cs b/CryptoNet.UnitTests/CryptoNetRsaTests.cs index fc125ae..bf046c7 100644 --- a/CryptoNet.UnitTests/CryptoNetRsaTests.cs +++ b/CryptoNet.UnitTests/CryptoNetRsaTests.cs @@ -201,11 +201,11 @@ public void Encrypt_With_PublicKey_Decrypt_With_PrivateKey_Of_Content_Test() Common.ConfidentialDummyData.ShouldBe(decryptedData); } - [Ignore("")] + [Ignore("Private: This test works only on local Windows enviroment for debugging and testing. You can also put your own certifciate when debugging and testing")] public void Encrypt_Decrypt_Using_X509_Certificate_Test() { // Arrange - X509Certificate2? certificate = CryptoNetExtensions.GetCertificateFromStore("CN=localhost"); + X509Certificate2? certificate = CryptoNetExtensions.GetCertificateFromStore("CN=Maytham"); var rsaPublicKey = new CryptoNetRsa(certificate, KeyType.PublicKey); var rsaPrivateKey = new CryptoNetRsa(certificate, KeyType.PrivateKey); @@ -218,7 +218,7 @@ public void Encrypt_Decrypt_Using_X509_Certificate_Test() } - [Ignore("Private")] + [Ignore("Private: This test works only on local Windows enviroment for debugging and testing. You can also put your own certifciate when debugging and testing")] public void Export_Public_Key_For_X509_Certificate_Test() { // Arrange @@ -233,7 +233,7 @@ public void Export_Public_Key_For_X509_Certificate_Test() publicKey.ShouldNotBeEmpty(); } - [Ignore("Private")] + [Ignore("Private: This test works only on local Windows enviroment for debugging and testing. You can also put your own certifciate when debugging and testing")] public void Customize_PEM_Key_Encryption_Decryption_Test() { // Arrange diff --git a/Dockerfile b/Dockerfile index 9bd8103..471e3a3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,4 +6,4 @@ RUN apt-get update && apt-get install libxml2 RUN dotnet restore # Unit ans Integration Tests -RUN dotnet test \ No newline at end of file +RUN dotnet test --verbosity normal \ No newline at end of file