Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/corlib/Test/System.Security.Cryptography.X509Certificates/X509CertificateTest.cs')
-rw-r--r--mcs/class/corlib/Test/System.Security.Cryptography.X509Certificates/X509CertificateTest.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/mcs/class/corlib/Test/System.Security.Cryptography.X509Certificates/X509CertificateTest.cs b/mcs/class/corlib/Test/System.Security.Cryptography.X509Certificates/X509CertificateTest.cs
index 3e6958d083b..634dda0599c 100644
--- a/mcs/class/corlib/Test/System.Security.Cryptography.X509Certificates/X509CertificateTest.cs
+++ b/mcs/class/corlib/Test/System.Security.Cryptography.X509Certificates/X509CertificateTest.cs
@@ -82,6 +82,12 @@ public void ConstructorX509CertificateNull ()
X509Certificate nullcopy = new X509Certificate ((X509Certificate) null);
}
+[Test]
+public void X509Certificate_WhenEmptyCertificateProvided_DoesNotThrow ()
+{
+ Assert.DoesNotThrow (() => new X509Certificate (new X509Certificate ()));
+}
+
//-->8-- NON GENERATED CODE ENDS HERE -->8---->8---->8---->8---->8---->8--
// Certificate: basic\COMMERCE.cer