فهرست منبع

2008-05-25 Sebastien Pouliot <[email protected]>

	* XmlDsigBase64TransformTest.cs: Add test case for InputTypes
	* XmlDsigExcC14NTransformTest.cs: Add test case for InputTypes


svn path=/trunk/mcs/; revision=104038
Sebastien Pouliot 17 سال پیش
والد
کامیت
0a59629d4a

+ 5 - 0
mcs/class/System.Security/Test/System.Security.Cryptography.Xml/ChangeLog

@@ -1,3 +1,8 @@
+2008-05-25  Sebastien Pouliot  <[email protected]>
+
+	* XmlDsigBase64TransformTest.cs: Add test case for InputTypes
+	* XmlDsigExcC14NTransformTest.cs: Add test case for InputTypes
+
 2007-03-22  Atsushi Enomoto  <[email protected]>
 
 	* XmlDsigC14NTransformTest.cs : added test for xmlns attribute 

+ 18 - 0
mcs/class/System.Security/Test/System.Security.Cryptography.Xml/XmlDsigBase64TransformTest.cs

@@ -74,6 +74,24 @@ namespace MonoTests.System.Security.Cryptography.Xml {
 			Assert ("Output Stream", ostream);
 		}
 
+		[Test]
+		public void Types ()
+		{
+			Type [] input = transform.InputTypes;
+			input [0] = null;
+			input [1] = null;
+			input [2] = null;
+			// property does not return a clone
+			foreach (Type t in transform.InputTypes) {
+				AssertNull (t);
+			}
+			// it's not a static array
+			XmlDsigBase64Transform t2 = new XmlDsigBase64Transform ();
+			foreach (Type t in t2.InputTypes) {
+				AssertNotNull (t);
+			}
+		}
+
 		[Test]
 		public void GetInnerXml () 
 		{

+ 18 - 0
mcs/class/System.Security/Test/System.Security.Cryptography.Xml/XmlDsigExcC14NTransformTest.cs

@@ -97,6 +97,24 @@ namespace MonoTests.System.Security.Cryptography.Xml {
 			Assert ("Output Stream", ostream);
 		}
 
+		[Test]
+		public void Types ()
+		{
+			Type [] input = transform.InputTypes;
+			input [0] = null;
+			input [1] = null;
+			input [2] = null;
+			// property does not return a clone
+			foreach (Type t in transform.InputTypes) {
+				AssertNull (t);
+			}
+			// it's not a static array
+			XmlDsigExcC14NTransform t2 = new XmlDsigExcC14NTransform ();
+			foreach (Type t in t2.InputTypes) {
+				AssertNotNull (t);
+			}
+		}
+
 		[Test]
 		public void GetInnerXml () 
 		{