2008-05-25 Sebastien Pouliot <sebastien@ximian.com>
authorSebastien Pouliot <sebastien@ximian.com>
Sun, 25 May 2008 21:50:08 +0000 (21:50 -0000)
committerSebastien Pouliot <sebastien@ximian.com>
Sun, 25 May 2008 21:50:08 +0000 (21:50 -0000)
* XmlDsigBase64TransformTest.cs: Add test case for InputTypes
* XmlDsigExcC14NTransformTest.cs: Add test case for InputTypes

svn path=/trunk/mcs/; revision=104038

mcs/class/System.Security/Test/System.Security.Cryptography.Xml/ChangeLog
mcs/class/System.Security/Test/System.Security.Cryptography.Xml/XmlDsigBase64TransformTest.cs
mcs/class/System.Security/Test/System.Security.Cryptography.Xml/XmlDsigExcC14NTransformTest.cs

index 9ef3f335fddd151b24fdea7d3a99e77c492e2fe9..e55c37c90b1a5caac8c7c6d75599728f275d35a8 100644 (file)
@@ -1,3 +1,8 @@
+2008-05-25  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * XmlDsigBase64TransformTest.cs: Add test case for InputTypes
+       * XmlDsigExcC14NTransformTest.cs: Add test case for InputTypes
+
 2007-03-22  Atsushi Enomoto  <atsushi@ximian.com>
 
        * XmlDsigC14NTransformTest.cs : added test for xmlns attribute 
index 2238f0b598533ca7ee36e70b2ca3c0cff9245b70..f553a44d92036c83bf1cc497ab8d2777bed7a49f 100644 (file)
@@ -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 () 
                {
index 678644f325336a282f34d6a744968f67debca52c..fe038dbd2e56e6d10dd09452532b55746698ad39 100644 (file)
@@ -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 () 
                {