You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
parent
a569aebcfd
commit
e79aa3c0ed
@@ -1,48 +0,0 @@
|
||||
2009-06-26 Robert Jordan <robertj@gmx.net>
|
||||
|
||||
* OidCollectionTest.cs, OidEnumeratorTest.cs:
|
||||
Upgrade to new NUnit style.
|
||||
|
||||
2007-03-07 Vladimir Krasnov <vladimirk@mainsoft.com>
|
||||
|
||||
* AsnEncodedDataTest.cs, OidCollectionTest.cs, OidEnumeratorTest.cs,
|
||||
OidTest.cs: removed not supported calls for TARGET_JVM because of
|
||||
validation failures
|
||||
|
||||
2006-04-25 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* OidTest.cs,
|
||||
AsnEncodedDataTest.cs : commented locale-dependent tests
|
||||
(FriendlyName and Format(bool)) out.
|
||||
|
||||
2005-09-26 Sebastien Pouliot <sebastien@ximian.com>
|
||||
|
||||
* Asn*.cs, Oid*.cs: Moved from System.Security.dll
|
||||
|
||||
2005-01-20 Sebastien Pouliot <sebastien@ximian.com>
|
||||
|
||||
* AsnEncodedDataTest.cs: Added test case for SubjectAltName extension.
|
||||
|
||||
2005-01-17 Sebastien Pouliot <sebastien@ximian.com>
|
||||
|
||||
* AsnEncodedDataTest.cs: Added tests decode Fx supported Enhanced Key
|
||||
Usage extension and Fx "officially" unsupported Netscape Cert Type
|
||||
extension. Both are docoded sucessfully at this level.
|
||||
|
||||
2005-01-13 Sebastien Pouliot <sebastien@ximian.com>
|
||||
|
||||
* AsnEncodedDataTest.cs: Added tests for Oid, RawData properties and
|
||||
for CopyFrom method.
|
||||
|
||||
2004-07-09 Sebastien Pouliot <sebastien@ximian.com>
|
||||
|
||||
* AsnEncodedDataTest.cs: Fixed for Fx 2.0 beta1.
|
||||
* OidTest.cs: Fixed for Fx 2.0 beta1.
|
||||
|
||||
2003-11-06 Sebastien Pouliot <spouliot@videotron.ca>
|
||||
|
||||
* AsnEncodedDataTest.cs: New. Unit tests for AsnEncodedData (.NET 1.2).
|
||||
* OidTest.cs: New. Unit tests for Oid (.NET 1.2).
|
||||
* OidCollectionTest.cs: New. Unit tests for OidCollection (.NET 1.2).
|
||||
* OidEnumeratorTest.cs: New. Unit tests for OidEnumerator (.NET 1.2).
|
||||
|
@@ -36,7 +36,6 @@ using System.Security.Cryptography;
|
||||
namespace MonoTests.System.Security.Cryptography {
|
||||
|
||||
[TestFixture]
|
||||
|
||||
public class OidTest {
|
||||
|
||||
static string invalidOid = "1.0";
|
||||
@@ -97,7 +96,7 @@ namespace MonoTests.System.Security.Cryptography {
|
||||
public void ConstructorStringStringNull ()
|
||||
{
|
||||
Oid o = new Oid (validOid, null);
|
||||
Assert.IsNull (o.FriendlyName, "FriendlyName");
|
||||
Assert.AreEqual ("RSA", o.FriendlyName, "FriendlyName");
|
||||
Assert.AreEqual (validOid, o.Value, "Value");
|
||||
}
|
||||
|
||||
@@ -136,7 +135,7 @@ namespace MonoTests.System.Security.Cryptography {
|
||||
Oid o = new Oid (validOid, invalidName);
|
||||
Assert.AreEqual (invalidName, o.FriendlyName, "FriendlyName");
|
||||
o.FriendlyName = null;
|
||||
Assert.IsNull (o.FriendlyName, "FriendlyName-Null");
|
||||
Assert.AreEqual ("RSA", o.FriendlyName, "FriendlyName-Null");
|
||||
}
|
||||
|
||||
[Test]
|
||||
@@ -212,8 +211,15 @@ namespace MonoTests.System.Security.Cryptography {
|
||||
o.FriendlyName = "sha512";
|
||||
Assert.AreEqual (o.Value, "2.16.840.1.101.3.4.2.3", "sha512 Value from FriendlyName");
|
||||
|
||||
o = new Oid ("2.16.840.1.101.3.4.2.2");
|
||||
Assert.AreEqual ("2.16.840.1.101.3.4.2.2", o.Value, "sha384 Value");
|
||||
Assert.AreEqual ("sha384", o.FriendlyName, "sha384 FriendlyName");
|
||||
|
||||
o = new Oid ("1.2.840.113549.1.1.12");
|
||||
Assert.AreEqual ("1.2.840.113549.1.1.12", o.Value, "sha384RSA Value");
|
||||
Assert.AreEqual ("sha384RSA", o.FriendlyName, "sha384RSA FriendlyName");
|
||||
|
||||
// TODO: add other well known oid as we find them
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user