Commit Graph
22 Commits
Author SHA1 Message Date
Alexander Köplinger 48e112d652 [Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Sebastien Pouliot 4e60ea839a Fix old test cases so it's easier to reuse for the mobile profile / nunitlite 2012-03-22 20:34:34 -04:00
Marek Safar 0c7782ddc4 Convert some old nunit tests 2012-02-27 16:59:01 +00:00
Sebastien Pouliot 425435496e 2007-05-08 Randolph Chung <[email protected]>
* DSACryptoServiceProviderTest.cs: Remove "NotWorking" annotation
	for the blob tests that should now pass.


svn path=/trunk/mcs/; revision=76981
2007-05-09 02:47:31 +00:00
Sebastien Pouliot 78fa5ed2f3 2007-03-22 Sebastien Pouliot <[email protected]>
* DSACryptoServiceProviderTest.cs: Normalize line endings.
	* RSACryptoServiceProviderTest.cs: Normalize line endings.

svn path=/trunk/mcs/; revision=74822
2007-03-22 17:34:00 +00:00
Roei Erez 42930a5f97 Adding some TARGET_JVM tags.
svn path=/trunk/mcs/; revision=74388
2007-03-15 15:38:38 +00:00
Sebastien Pouliot a3f776bbdd 2007-02-14 Sebastien Pouliot <[email protected]>
* CryptoConfigTest.cs: Adjust line-endings.
	* CryptoStreamTest.cs: Adjust line-endings.
	* DESTest.cs: Adjust line-endings.
	* DSACryptoServiceProviderTest.cs: Adjust line-endings.
	* DSATest.cs: Adjust line-endings.
	* RSACryptoServiceProviderTest.cs: Adjust line-endings.


svn path=/trunk/mcs/; revision=72893
2007-02-15 02:00:27 +00:00
Sebastien Pouliot fe8226f28c 2005-04-27 Sebastien Pouliot <[email protected]>
* DSACryptoServiceProviderTest.cs: Catch UnauthorizedAccessException
	directly in UseMachineKeyStore (not just wrapped inside a 
	CryptographicException). 
	* RSACryptoServiceProviderTest.cs: Catch UnauthorizedAccessException
	directly in UseMachineKeyStore (not just wrapped inside a 
	CryptographicException). 


svn path=/trunk/mcs/; revision=43675
2005-04-27 18:38:36 +00:00
Ben Maurer faad63f1ab NotWorking fixes for 2.0
svn path=/trunk/mcs/; revision=40785
2005-02-17 04:04:54 +00:00
Sebastien Pouliot 5a50745c65 2005-01-11 Sebastien Pouliot <[email protected]>
* DSACryptoServiceProviderTest.cs: Fixed VerifySignatureWithoutKey to
	ensure that Mono didn't create the key before starting verification.
	* RSACryptoServiceProviderTest.cs: Added tests for PublicOnly in the
	constructor tests and for VerifyHash with a null OID.
	* RSAPKCS1SignatureFormatterTest.cs: Fixed signatures values for 
	SHA256, SHA384 and SHA512 for NET_2_0 profile. The older signatures
	(working only in Mono) can't be used because 2.0 use new OID for those
	hash algorithms. Note that this still only works with Mono in 2.0!

svn path=/trunk/mcs/; revision=38721
2005-01-11 19:42:44 +00:00
Sebastien Pouliot 899535892d 2005-01-10 Sebastien Pouliot <[email protected]>
* CryptoStreamTest.cs, DSACryptoServiceProviderTest.cs,
	HashAlgorithmTest.cs, PKCS1MaskGenerationMethodTest.cs,
	RSAPKCS1KeyExchangeFormatterTest.cs, ToBase64TransformTest.cs:
	Use [Category ("NotDotNet")] for tests failing only on the MS runtime
	(so they are now executed on Mono).


svn path=/trunk/mcs/; revision=38614
2005-01-10 13:35:36 +00:00
Sebastien Pouliot ff688f36c7 2004-12-23 Sebastien Pouliot <[email protected]>
* CryptoStreamTest.cs: Fixed tests to execute properly on 2.0 Nov CTP.
	* DSACryptoServiceProviderTest.cs: Fixed tests to execute properly on 
	2.0 Nov CTP.
	* PaddingModeTest.cs: Fixed tests to execute properly on 2.0 Nov CTP.
	* RSACryptoServiceProviderTest.cs: Fixed tests to execute properly on 
	2.0 Nov CTP.


svn path=/trunk/mcs/; revision=38061
2004-12-23 14:28:11 +00:00
Sebastien Pouliot 9430317680 2004-11-03 Sebastien Pouliot <[email protected]>
* DSACryptoServiceProviderTest.cs: Fixed UseMachineKeyStore not to
	fail if the key container directory wasn't yet created (root).
	* PasswordDeriveBytesTest.cs: Added tests for NET_2_0, more tests
	for all constructors, tests for properties and a test for bug 69036.
	* RSACryptoServiceProviderTest.cs: Fixed UseMachineKeyStore not to
	fail if the key container directory wasn't yet created (root).

svn path=/trunk/mcs/; revision=35593
2004-11-03 12:05:52 +00:00
Nick Drochak 4dfe8a4760 2004-08-31 Nick Drochak <[email protected]>
* DSACryptoServiceProviderTest.cs:
	* RSACryptoServiceProviderTest.cs: Feed csc smaller bite sizes.

svn path=/trunk/mcs/; revision=33091
2004-08-31 12:17:20 +00:00
Sebastien Pouliot 1d2f1d82f4 2004-07-07 Sebastien Pouliot <[email protected]>
* AllTests2.cs: Updated to NUnit 2.2 Assert.
	* CipherModeTest.cs: New. Tests supported CipherMode for all
	SymmetricAlgorithm included in the framework (enum contains two more
	modes that aren't implemented in any Fx version).
	* CryptoConfigTest.cs: Ajusted new OID (for old names) in Fx 2.0.
	* CryptoStreamTest.cs: Fixed different reported exception in Fx 2.0.
	Fixed a bad test.
	* CspProviderFlagsTest.cs: New. Test the values of the enum.
	* DSACryptoServiceProviderTest.cs: Added new tests for new public
	properties and methods added in Fx 2.0. Duplicated test to import a
	key pair into a disposed instance (works in Fx 2.0). Removed all
	[Ignore]s in NET_2_0 as the MS class/runtime has been fixed.
	* DSASignatureDeformatterTest.cs: Converted from NUnit 1 to 2.2. Fixed
	different reported exception in Fx 2.0.
	* DSASignatureFormatterTest.cs: Converted from NUnit 1 to 2.2. Fixed
	different reported exception in Fx 2.0.
	* HMACRIPEMD160Test.cs: Fixed tests using TransformFinalBlock.
	* HMACSHA1Test.cs: Fixed tests so they work on both NET_1_1 and
	NET_2_0 profiles (as HMACSHA1 changed it's base class).
	* HashAlgorithmTest.cs: Fixed different reported exception in Fx 2.0.
	Removed [Ignore] in NET_2_0 as the MS class/runtime has been fixed.
	* MACTripleDESTest.cs: Fixed tests so they work on both NET_1_1 and
	NET_2_0 profiles.
	* PKCS1MaskGenerationMethodTest.cs: Removed [Ignore] in NET_2_0 as the
	MS class has been fixed.
	* PaddingModeTest.cs: Added new tests for the two new padding mode
	introduced in Fx 2.0. Converted to NUnit 2.2.
	* PasswordDeriveBytesTest.cs: Removed [ExpectedException] for
	StrangeBehaviour test as it is fixed in Fx 2.0.
	* RC2Test.cs: Changed exception from CryptographicException to
	CryptographicUnexpectedOperationException for Fx 1.1/2.0.
	* RIPEMD160Test.cs: Fixed tests using TransformFinalBlock.
	* RSACryptoServiceProviderTest.cs: Added new tests for new public
	properties and methods added in Fx 2.0. Duplicated test to import a
	key pair into a disposed instance (works in Fx 2.0). Duplicated test
	to sign with a null OID (Fx 2.0 use SHA1 oid in this case).
	* RSAOAEPKeyExchangeDeformatterTest.cs: Changed exception for a key
	exchange with no key (to match Fx 2.0).
	* RSAOAEPKeyExchangeFormatterTest.cs: Changed exception for a key
	exchange with no key (to match Fx 2.0).
	* RSAPKCS1KeyExchangeFormatterTest.cs: Changed exception for a key
	exchange with no key (to match Fx 2.0). Removed [Ignore] in NET_2_0 as
	the MS class/runtime has been fixed.
	* RSAPKCS1SignatureDeformatterTest.cs: Null keys, in constructor or in
	SetKey method, now throw an ArgumentNullException in Fx 2.0.
	* RSAPKCS1SignatureFormatterTest.cs: Null keys, in constructor or in
	SetKey method, now throw an ArgumentNullException in Fx 2.0.
	* Rfc2898DeriveBytesTest.cs: Typecasted a null as a string.
	* SymmetricAlgorithm2Test.cs: In Fx 2.0 an empty IV now throws a
	CryptographicException.
	* ToBase64TransformTest.cs: Fixed different reported exception in Fx 2.0.
	Removed [Ignore] in NET_2_0 as the MS class/runtime has been fixed.

svn path=/trunk/mcs/; revision=30836
2004-07-07 14:20:04 +00:00
Sebastien Pouliot 2584b0aaf2 2004-05-20 Sebastien Pouliot <[email protected]>
* CryptoStreamTest.cs, DESCryptoServiceProviderTest.cs,
	DSACryptoServiceProviderTest.cs, DSATest.cs, FromBase64Transform.cs,
	HMACRIPEMD160Test.cs, MD5Test.cs, PKCS1MaskGenerationMethodTest.cs,
	RIPEMD160ManagedTest.cs, RNGCryptoServiceProviderTest.cs,
	RSACryptoServiceProviderTest.cs, RSAOAEPKeyExchangeDeformatterTest.cs,
	RSAOAEPKeyExchangeFormatterTest.cs, RSAPKCS1KeyExchangeDeformatterTest.cs,
	RSAPKCS1KeyExchangeFormatterTest.cs, RSAPKCS1SignatureDeformatterTest.cs,
	RSAPKCS1SignatureFormatterTest.cs, RSATest.cs: SetUp/TearDown are now
	public (required for new nunit).

svn path=/trunk/mcs/; revision=27790
2004-05-21 01:03:41 +00:00
Sebastien Pouliot 2cc5bc406c 2004-05-07 Sebastien Pouliot <[email protected]>
* DSACryptoServiceProviderTest.cs: Added a new unit test for SignData
	(was badly tested) and simplified test to reduce key pair generations.

svn path=/trunk/mcs/; revision=26931
2004-05-07 16:29:21 +00:00
Sebastien Pouliot c4fc0b30e9 2004-04-29 Sebastien Pouliot <[email protected]>
* DSACryptoServiceProviderTest.cs: New unit tests fo better coverage.
	* FromBase64Transform.cs: New unit tests for better coverage.
	* HashAlgorithmTest.cs: New unit tests for better coverage.
	* HMACSHA1Test.cs: New unit tests for better coverage. Updated to
	NUnit2.
	* KeyedHashAlgorithmTest.cs: Coverage already complete. Updated to
	NUnit 2.
	* SHA1Test.cs: Coverage already complete. Updated to NUnit2.
	* SHA1CryptoServiceProviderTest.cs: Coverage almost complete. Updated
	to NUnit2.
	* SHA256Test.cs: Coverage already complete. Updated to NUnit2.
	* SHA256ManagedTest.cs: Coverage already complete. Updated to NUnit2.
	* SHA384Test.cs: Coverage already complete. Updated to NUnit2.
	* SHA384ManagedTest.cs: Coverage almost complete. Updated to NUnit2.
	* SHA512Test.cs: Coverage already complete. Updated to NUnit2.
	* SHA512ManagedTest.cs: Coverage almost complete. Updated to NUnit2.

svn path=/trunk/mcs/; revision=26367
2004-04-30 00:48:45 +00:00
Sebastien Pouliot acecbdf941 2004-02-09 Sebastien Pouliot <[email protected]>
* DSACryptoServiceProvider.cs: Added new unit tests for key pair
	persistence.
	* RSACryptoServiceProvider.cs: Added new unit tests for key pair
	persistence.

svn path=/trunk/mcs/; revision=22898
2004-02-09 14:20:15 +00:00
Sebastien Pouliot 350e3b4574 2003-07-05 Sebastien Pouliot <[email protected]>
* DSACryptoServiceProviderTest.cs: Added news unit tests for Dispose/Clear
	and better test coverage (based on Zoltan's logs).
	* DSATest.cs: Converted to NUnit2 format. Added new tests for better unit
	test coverage (import incomplete public keys).
	* RSACryptoServiceProviderTest.cs: Added news unit tests for Dispose/Clear
	and better test coverage (based on Zoltan's logs).
	* RSATest.cs: Converted to NUnit2 format. Added new tests for better unit
	test coverage (import incomplete public keys).

svn path=/trunk/mcs/; revision=15974
2003-07-06 02:56:40 +00:00
Nick Drochak 99a25b98bd 2002-12-21 Nick Drochak <[email protected]>
* all: make tests build and run under nunit2

svn path=/trunk/mcs/; revision=9817
2002-12-21 14:15:43 +00:00
Sebastien Pouliot 619d5022f2 2002-11-16 Sebastien Pouliot <[email protected]>
* AllTests.cs: Added suites for DSASignatureDeformatter,
	DSASignatureFormatter.
	* CryptoConfigTest.cs: Tests new URLs. This test will fail
	if System.Security.dll isn't present (or not yet compiled).
	* DSACryptoServiceProviderTest.cs: New. Key generation (limited
	because it's too slow), Import/Export, Signature and Verification.
	* DSASignatureDeformatterTest.cs: New. Test signature verification.
	* DSASignatureFormatterTest.cs: New. Test signature creation.
	* DSATest.cs: Comment DSA-derived test class as DSA constructor
	is internal. Reworked the test suite.
	* SignatureDescriptionTest.cs: Added tests for
	DSASignatureDescription and RSAPKCS1SHA1SignatureDescription.

svn path=/trunk/mcs/; revision=9021
2002-11-17 03:41:06 +00:00