Пример #1
0
        public void op_Check_whenNameWrong()
        {
            var obj = new XmlArrayTest(typeof(XmlDecorationClass1).GetProperty("Array1"))
                          {
                              ArrayElementName = "xxx"
                          };

            Assert.Throws<UnitTestException>(() => obj.Check());
        }
        public void op_Check_whenNameWrong()
        {
            var obj = new XmlArrayTest(typeof(XmlDecorationClass1).GetProperty("Array1"))
            {
                ArrayElementName = "xxx"
            };

            Assert.Throws <UnitTestException>(() => obj.Check());
        }
Пример #3
0
        public void op_Check_whenXmlArrayItemMissing()
        {
            var obj = new XmlArrayTest(typeof(XmlDecorationClass1).GetProperty("Array2"))
                          {
                              ArrayElementName = "array2",
                              ArrayItemElementName = "item2"
                          };

            Assert.Throws<UnitTestException>(() => obj.Check());
        }
Пример #4
0
        public void op_Check_whenTrue()
        {
            var obj = new XmlArrayTest(typeof(XmlDecorationClass1).GetProperty("Array1"))
                          {
                              ArrayElementName = "array1",
                              ArrayItemElementName = "item1"
                          };

            Assert.True(obj.Check());
        }
        public void op_Check_whenXmlArrayItemMissing()
        {
            var obj = new XmlArrayTest(typeof(XmlDecorationClass1).GetProperty("Array2"))
            {
                ArrayElementName     = "array2",
                ArrayItemElementName = "item2"
            };

            Assert.Throws <UnitTestException>(() => obj.Check());
        }
        public void op_Check_whenTrue()
        {
            var obj = new XmlArrayTest(typeof(XmlDecorationClass1).GetProperty("Array1"))
            {
                ArrayElementName     = "array1",
                ArrayItemElementName = "item1"
            };

            Assert.True(obj.Check());
        }
Пример #7
0
        public void op_Check_whenXmlArrayMissing()
        {
            var obj = new XmlArrayTest(typeof(PropertiedClass1).GetProperty("AutoBoolean"));

            Assert.Throws<UnitTestException>(() => obj.Check());
        }
        public void op_Check_whenXmlArrayMissing()
        {
            var obj = new XmlArrayTest(typeof(PropertiedClass1).GetProperty("AutoBoolean"));

            Assert.Throws <UnitTestException>(() => obj.Check());
        }