Esempio n. 1
0
        public void OutputTypes()
        {
            // property does not return a clone
            transform.OutputTypes [0] = null;
            Assert.IsNull(transform.OutputTypes [0]);

            // it's not a static array
            transform = new UnprotectedXmlDsigExcC14NWithCommentsTransform();
            Assert.IsNotNull(transform.OutputTypes [0]);
        }
Esempio n. 2
0
        [Test]         // ctor (Boolean)
        public void Constructor2()
        {
            transform = new UnprotectedXmlDsigExcC14NWithCommentsTransform(null);
            CheckProperties(transform);
            Assert.IsNull(transform.InclusiveNamespacesPrefixList);

            transform = new UnprotectedXmlDsigExcC14NWithCommentsTransform(string.Empty);
            CheckProperties(transform);
            Assert.AreEqual(string.Empty, transform.InclusiveNamespacesPrefixList);

            transform = new UnprotectedXmlDsigExcC14NWithCommentsTransform("#default xsd");
            CheckProperties(transform);
            Assert.AreEqual("#default xsd", transform.InclusiveNamespacesPrefixList);
        }
		[Test] // ctor (Boolean)
		public void Constructor2 ()
		{
			transform = new UnprotectedXmlDsigExcC14NWithCommentsTransform (null);
			CheckProperties (transform);
			Assert.IsNull (transform.InclusiveNamespacesPrefixList);

			transform = new UnprotectedXmlDsigExcC14NWithCommentsTransform (string.Empty);
			CheckProperties (transform);
			Assert.AreEqual (string.Empty, transform.InclusiveNamespacesPrefixList);

			transform = new UnprotectedXmlDsigExcC14NWithCommentsTransform ("#default xsd");
			CheckProperties (transform);
			Assert.AreEqual ("#default xsd", transform.InclusiveNamespacesPrefixList);
		}
Esempio n. 4
0
        public void InputTypes()
        {
            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)
            {
                Assert.IsNull(t);
            }

            // it's not a static array
            transform = new UnprotectedXmlDsigExcC14NWithCommentsTransform();
            foreach (Type t in transform.InputTypes)
            {
                Assert.IsNotNull(t);
            }
        }
Esempio n. 5
0
 public void SetUp()
 {
     transform = new UnprotectedXmlDsigExcC14NWithCommentsTransform();
 }
		public void SetUp ()
		{
			transform = new UnprotectedXmlDsigExcC14NWithCommentsTransform ();
		}
		public void OutputTypes ()
		{
			// property does not return a clone
			transform.OutputTypes [0] = null;
			Assert.IsNull (transform.OutputTypes [0]);

			// it's not a static array
			transform = new UnprotectedXmlDsigExcC14NWithCommentsTransform ();
			Assert.IsNotNull (transform.OutputTypes [0]);
		}
		public void InputTypes ()
		{
			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)
				Assert.IsNull (t);

			// it's not a static array
			transform = new UnprotectedXmlDsigExcC14NWithCommentsTransform ();
			foreach (Type t in transform.InputTypes)
				Assert.IsNotNull (t);
		}