예제 #1
0
        public void op_GetData_MethodInfo_Types_whenParameterCountMismatch()
        {
            var obj = new CsvHttpAttribute("http://www.alan-dean.com/one.csv", "http://www.alan-dean.com/two.csv");

            Assert.Throws <InvalidOperationException>(() => obj.GetData(GetType().GetMethod("usage"), new[] { typeof(CsvDataSheet) }).ToList());
        }
예제 #2
0
        public void op_GetData_MethodInfo_TypesNull()
        {
            var obj = new CsvHttpAttribute("http://www.alan-dean.com/example.csv");

            Assert.Throws <ArgumentNullException>(() => obj.GetData(GetType().GetMethod("usage"), null).ToList());
        }
예제 #3
0
        public void op_GetData_MethodInfo_Types_whenInvalidParameterType()
        {
            var obj = new CsvHttpAttribute("http://www.alan-dean.com/example.csv");

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

            Assert.Throws <ArgumentNullException>(() => obj.GetData(null, new[] { typeof(CsvDataSheet) }).ToList());
        }
예제 #5
0
        public void op_GetData_MethodInfo_Types_whenParameterCountMismatch()
        {
            var obj = new CsvHttpAttribute("http://www.alan-dean.com/one.csv", "http://www.alan-dean.com/two.csv");

            Assert.Throws<InvalidOperationException>(() => obj.GetData(GetType().GetMethod("usage"), new[] { typeof(CsvDataSheet) }).ToList());
        }
예제 #6
0
        public void op_GetData_MethodInfo_Types_whenInvalidParameterType()
        {
            var obj = new CsvHttpAttribute("http://www.alan-dean.com/example.csv");

            Assert.Throws<InvalidOperationException>(() => obj.GetData(GetType().GetMethod("usage"), new[] { typeof(string) }).ToList());
        }
예제 #7
0
        public void op_GetData_MethodInfo_TypesNull()
        {
            var obj = new CsvHttpAttribute("http://www.alan-dean.com/example.csv");

            Assert.Throws<ArgumentNullException>(() => obj.GetData(GetType().GetMethod("usage"), null).ToList());
        }
예제 #8
0
        public void op_GetData_MethodInfoNull_Types()
        {
            var obj = new CsvHttpAttribute("example.csv");

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