2008-05-25 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mcs / class / System.Security / Test / System.Security.Cryptography.Xml / XmlDsigBase64TransformTest.cs
index e77a7d18cb414e2015c554a998fa70e3aad743be..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 () 
                {
@@ -121,14 +139,14 @@ namespace MonoTests.System.Security.Cryptography.Xml {
                }
 
                [Test]
-               [Ignore ("LAMESPEC or BUG but this returns nothing with MS implementation ???")]
                public void LoadInputAsXmlNodeList () 
                {
                        XmlDocument doc = GetDoc ();
                        transform.LoadInput (doc.ChildNodes);
                        Stream s = (Stream) transform.GetOutput ();
                        string output = Stream2String (s);
-                       AssertEquals ("XmlChildNodes", String.Empty, output); // ???
+                       // Note that ChildNodes does not contain the text node.
+                       AssertEquals ("XmlChildNodes", String.Empty, output);
                }
 
                [Test]