namespace MonoTests.System.Security.Cryptography {
-#if NET_2_0
public class NonAbstractDSAForUnitTests : DSA {
protected DSAParameters dsa;
protected override void Dispose (bool disposing) { }
}
-#endif
[TestFixture]
public class DSATest {
[SetUp]
public void SetUp ()
{
-#if NET_2_0
dsa = new NonAbstractDSAForUnitTests ();
-#else
- dsa = new DSACryptoServiceProvider ();
-#endif
}
public void AssertEquals (string msg, byte [] array1, byte [] array2)
// importing and exporting a DSA key (including private key)
[Test]
-#if NET_2_0
[ExpectedException (typeof (ArgumentNullException))]
-#else
- [ExpectedException (typeof (CryptographicException))]
-#endif
public void DSAImportPublicExportPrivate ()
{
DSAParameters input = AllTests.GetKey (false);