public void op_GetData_MethodInfo_Types_whenParameterCountMismatch()
        {
            var obj = new XmlFileAttribute("one.xml", "two.xml");

            Assert.Throws <InvalidOperationException>(() => obj.GetData(GetType().GetMethod("usage"), new[] { typeof(XmlDocument) }).ToList());
        }
        public void op_GetData_MethodInfo_TypesNull()
        {
            var obj = new XmlFileAttribute("example.xml");

            Assert.Throws <ArgumentNullException>(() => obj.GetData(GetType().GetMethod("usage"), null).ToList());
        }
        public void op_GetData_MethodInfo_Types_whenInvalidParameterType()
        {
            var obj = new XmlFileAttribute("example.xml");

            Assert.Throws <InvalidOperationException>(() => obj.GetData(GetType().GetMethod("usage"), new[] { typeof(string) }).ToList());
        }
        public void op_GetData_MethodInfoNull_Types()
        {
            var obj = new XmlFileAttribute("example.xml");

            Assert.Throws <ArgumentNullException>(() => obj.GetData(null, new[] { typeof(XmlDocument) }).ToList());
        }
Exemplo n.º 5
0
        public void op_GetData_MethodInfo_Types_whenParameterCountMismatch()
        {
            var obj = new XmlFileAttribute("one.xml", "two.xml");

            Assert.Throws<InvalidOperationException>(() => obj.GetData(GetType().GetMethod("usage"), new[] { typeof(XmlDocument) }).ToList());
        }
Exemplo n.º 6
0
        public void op_GetData_MethodInfo_Types_whenInvalidParameterType()
        {
            var obj = new XmlFileAttribute("example.xml");

            Assert.Throws<InvalidOperationException>(() => obj.GetData(GetType().GetMethod("usage"), new[] { typeof(string) }).ToList());
        }
Exemplo n.º 7
0
        public void op_GetData_MethodInfo_TypesNull()
        {
            var obj = new XmlFileAttribute("example.xml");

            Assert.Throws<ArgumentNullException>(() => obj.GetData(GetType().GetMethod("usage"), null).ToList());
        }
Exemplo n.º 8
0
        public void op_GetData_MethodInfoNull_Types()
        {
            var obj = new XmlFileAttribute("example.xml");

            Assert.Throws<ArgumentNullException>(() => obj.GetData(null, new[] { typeof(XmlDocument) }).ToList());
        }