(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / class / Microsoft.Web.Services / Test / Microsoft.Web.Services.Security / AsymmetricEncryptionKeyTest.cs
blob3399d6f3510b79b45ff6b203d64aa14c7c00def6
1 //
2 // AsymmetricEncryptionKeyTest.cs
3 // - NUnit Test Cases for AsymmetricEncryptionKey
4 //
5 // Author:
6 // Sebastien Pouliot (spouliot@motus.com)
7 //
8 // (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
9 //
11 using NUnit.Framework;
12 using Microsoft.Web.Services.Security;
13 using System;
14 using System.Security.Cryptography;
15 using System.Xml;
17 namespace MonoTests.MS.Web.Services.Security {
19 [TestFixture]
20 public class AsymmetricEncryptionKeyTest : Assertion {
22 [Test]
23 [ExpectedException (typeof (ArgumentNullException))]
24 public void ConstructorNull ()
26 AsymmetricEncryptionKey aek = new AsymmetricEncryptionKey (null);
29 [Test]
30 public void ConstructorDSA ()
32 DSA dsa = DSA.Create ();
33 dsa.ImportParameters (AllTests.GetDSAKey (false));
34 AsymmetricEncryptionKey aek = new AsymmetricEncryptionKey (dsa);
35 AssertNotNull("DSA-KeyInfo", aek.KeyInfo);
38 [Test]
39 public void ConstructorRSA ()
41 RSA rsa = RSA.Create ();
42 rsa.ImportParameters (AllTests.GetRSAKey (false));
43 AsymmetricEncryptionKey aek = new AsymmetricEncryptionKey (rsa);
44 AssertNotNull ("RSA-KeyInfo", aek.KeyInfo);