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

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

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

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

            Assert.Throws<ArgumentNullException>(() => obj.GetData(null, new[] { typeof(TsvDataSheet) }).ToList());
        }
Exemple #5
0
        public void op_GetData_MethodInfo_Types_whenParameterCountMismatch()
        {
            var obj = new TsvDataAttribute("one.tsv", "two.tsv");

            Assert.Throws <InvalidOperationException>(() => obj.GetData(GetType().GetMethod("usage"), new[] { typeof(TsvDataSheet) }).ToList());
        }
Exemple #6
0
        public void op_GetData_MethodInfo_Types_whenInvalidParameterType()
        {
            var obj = new TsvDataAttribute("example.tsv");

            Assert.Throws <InvalidOperationException>(() => obj.GetData(GetType().GetMethod("usage"), new[] { typeof(string) }).ToList());
        }
Exemple #7
0
        public void op_GetData_MethodInfo_TypesNull()
        {
            var obj = new TsvDataAttribute("example.tsv");

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

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