2008-05-25 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mcs / class / System.Security / Test / System.Security.Cryptography.Xml / XmlDsigBase64TransformTest.cs
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 () 
                {