public Throws ( |
||
exceptionType | Type of the expected exception. | |
return | TestCaseData |
private static IEnumerable<TestCaseData> GetTestCases() { var manifest = JsonLdProcessor.FromRDF(File.ReadAllText(ManifestPath), new TurtleRDFParser()); var framed = JsonLdProcessor.Frame(manifest, ManifestFrame, new JsonLdOptions()); foreach (var testCase in framed["@graph"][0]["mf:entries"]) { var testCaseData = new TestCaseData((string)testCase["mf:action"]) .SetName(((string)testCase["mf:name"]).Trim('"')) .SetDescription(((string)testCase["rdfs:comment"]).Trim('"')); if ((string)testCase["@type"] == "rdft:TestNQuadsNegativeSyntax") { testCaseData.Throws(typeof(ParsingException)); } yield return testCaseData; } }