public void op_GetData_MethodInfo_Types_whenParameterCountMismatch() { var obj = new JsonFileAttribute("one.json", "two.json"); Assert.Throws<InvalidOperationException>(() => obj.GetData(GetType().GetMethod("usage"), new[] { typeof(JObject) }).ToList()); }
public void op_GetData_MethodInfo_TypesNull() { var obj = new JsonFileAttribute("example.json"); Assert.Throws<ArgumentNullException>(() => obj.GetData(GetType().GetMethod("usage"), null).ToList()); }
public void op_GetData_MethodInfo_Types_whenInvalidParameterType() { var obj = new JsonFileAttribute("example.json"); Assert.Throws<JsonReaderException>(() => obj.GetData(GetType().GetMethod("usage"), new[] { typeof(string) }).ToList()); }
public void op_GetData_MethodInfoNull_Types() { var obj = new JsonFileAttribute("example.json"); Assert.Throws<ArgumentNullException>(() => obj.GetData(null, new[] { typeof(JObject) }).ToList()); }
public void op_GetData_MethodInfo_Types_whenParameterCountMismatch() { var obj = new JsonFileAttribute("one.json", "two.json"); Assert.Throws <InvalidOperationException>(() => obj.GetData(GetType().GetMethod("usage"), new[] { typeof(JObject) }).ToList()); }
public void op_GetData_MethodInfo_Types_whenInvalidParameterType() { var obj = new JsonFileAttribute("example.json"); Assert.Throws <JsonReaderException>(() => obj.GetData(GetType().GetMethod("usage"), new[] { typeof(string) }).ToList()); }
public void op_GetData_MethodInfo_TypesNull() { var obj = new JsonFileAttribute("example.json"); Assert.Throws <ArgumentNullException>(() => obj.GetData(GetType().GetMethod("usage"), null).ToList()); }
public void op_GetData_MethodInfoNull_Types() { var obj = new JsonFileAttribute("example.json"); Assert.Throws <ArgumentNullException>(() => obj.GetData(null, new[] { typeof(JObject) }).ToList()); }