Пример #1
0
        public void OutputTypes()
        {
            // property does not return a clone
            transform.OutputTypes[0] = null;
            Assert.Null(transform.OutputTypes[0]);

            // it's not a static array
            transform = new UnprotectedXmlDsigExcC14NWithCommentsTransform();
            Assert.NotNull(transform.OutputTypes[0]);
        }
Пример #2
0
        public void InputTypes()
        {
            Type[] input = transform.InputTypes;
            input[0] = null;
            input[1] = null;
            input[2] = null;
            // property does not return a clone
            Assert.All(transform.InputTypes, Assert.Null);

            // it's not a static array
            transform = new UnprotectedXmlDsigExcC14NWithCommentsTransform();
            Assert.All(transform.InputTypes, Assert.NotNull);
        }
Пример #3
0
        [Fact] // ctor (Boolean)
        public void Constructor2()
        {
            transform = new UnprotectedXmlDsigExcC14NWithCommentsTransform(null);
            CheckProperties(transform);
            Assert.Null(transform.InclusiveNamespacesPrefixList);

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

            transform = new UnprotectedXmlDsigExcC14NWithCommentsTransform("#default xsd");
            CheckProperties(transform);
            Assert.Equal("#default xsd", transform.InclusiveNamespacesPrefixList);
        }
Пример #4
0
 public XmlDsigExcC14NWithCommentsTransformTest()
 {
     transform = new UnprotectedXmlDsigExcC14NWithCommentsTransform();
 }