Beispiel #1
0
        public void op_GetData_MethodInfo_Types_whenParameterCountMismatch()
        {
            var obj = new HtmlFileAttribute("one.html", "two.html");

            Assert.Throws <InvalidOperationException>(() => obj.GetData(GetType().GetMethod("usage"), new[] { typeof(XmlDocument) }).ToList());
        }
Beispiel #2
0
        public void op_GetData_MethodInfo_TypesNull()
        {
            var obj = new HtmlFileAttribute("example.html");

            Assert.Throws <ArgumentNullException>(() => obj.GetData(GetType().GetMethod("usage"), null).ToList());
        }
Beispiel #3
0
        public void op_GetData_MethodInfo_Types_whenInvalidParameterType()
        {
            var obj = new HtmlFileAttribute("example.html");

            Assert.Throws <InvalidOperationException>(() => obj.GetData(GetType().GetMethod("usage"), new[] { typeof(string) }).ToList());
        }
Beispiel #4
0
        public void op_GetData_MethodInfoNull_Types()
        {
            var obj = new HtmlFileAttribute("example.html");

            Assert.Throws <ArgumentNullException>(() => obj.GetData(null, new[] { typeof(XmlDocument) }).ToList());
        }
        public void op_GetData_MethodInfo_Types_whenParameterCountMismatch()
        {
            var obj = new HtmlFileAttribute("one.html", "two.html");

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

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

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

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