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()); }