Пример #1
0
        public void op_GetData_MethodInfo_Types_whenParameterCountMismatch()
        {
            var obj = new TsvHttpAttribute("http://www.alan-dean.com/one.tsv", "http://www.alan-dean.com/two.tsv");

            Assert.Throws<InvalidOperationException>(() => obj.GetData(GetType().GetMethod("usage"), new[] { typeof(TsvDataSheet) }).ToList());
        }
Пример #2
0
        public void op_GetData_MethodInfo_TypesNull()
        {
            var obj = new TsvHttpAttribute("http://www.alan-dean.com/example.tsv");

            Assert.Throws<ArgumentNullException>(() => obj.GetData(GetType().GetMethod("usage"), null).ToList());
        }
Пример #3
0
        public void op_GetData_MethodInfo_Types_whenInvalidParameterType()
        {
            var obj = new TsvHttpAttribute("http://www.alan-dean.com/example.tsv");

            Assert.Throws<InvalidOperationException>(() => obj.GetData(GetType().GetMethod("usage"), new[] { typeof(string) }).ToList());
        }
Пример #4
0
        public void op_GetData_MethodInfoNull_Types()
        {
            var obj = new TsvHttpAttribute("example.tsv");

            Assert.Throws<ArgumentNullException>(() => obj.GetData(null, new[] { typeof(TsvDataSheet) }).ToList());
        }
Пример #5
0
        public void op_GetData_MethodInfo_Types_whenParameterCountMismatch()
        {
            var obj = new TsvHttpAttribute("http://www.alan-dean.com/one.tsv", "http://www.alan-dean.com/two.tsv");

            Assert.Throws <InvalidOperationException>(() => obj.GetData(GetType().GetMethod("usage"), new[] { typeof(TsvDataSheet) }).ToList());
        }
Пример #6
0
        public void op_GetData_MethodInfo_Types_whenInvalidParameterType()
        {
            var obj = new TsvHttpAttribute("http://www.alan-dean.com/example.tsv");

            Assert.Throws <InvalidOperationException>(() => obj.GetData(GetType().GetMethod("usage"), new[] { typeof(string) }).ToList());
        }
Пример #7
0
        public void op_GetData_MethodInfo_TypesNull()
        {
            var obj = new TsvHttpAttribute("http://www.alan-dean.com/example.tsv");

            Assert.Throws <ArgumentNullException>(() => obj.GetData(GetType().GetMethod("usage"), null).ToList());
        }
Пример #8
0
        public void op_GetData_MethodInfoNull_Types()
        {
            var obj = new TsvHttpAttribute("example.tsv");

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