public static void TestResultSchemaMatches() { Assert.Multiple(() => { var controller = new FrameworkController("mock-assembly", Test.IdPrefix, new Dictionary <string, string>()); controller.LoadTests(); var frameworkXml = XElement.Parse(controller.RunTests(null)); var fullXml = new XElement("test-run", new XElement("command-line"), new XElement("filter"), frameworkXml, new XAttribute("id", 0), new XAttribute("name", 0), new XAttribute("fullname", 0), new XAttribute("testcasecount", 0), new XAttribute("result", "Passed"), new XAttribute("total", 0), new XAttribute("passed", 0), new XAttribute("failed", 0), new XAttribute("inconclusive", 0), new XAttribute("skipped", 0), new XAttribute("warnings", 0), new XAttribute("asserts", 0), new XAttribute("random-seed", 0)); SchemaTestUtils.AssertValidXml(fullXml.ToString(), "TestResult.xsd"); }); }
public static void TestSchemaMatches() { Assert.Multiple(() => { var controller = new FrameworkController("mock-assembly", Test.IdPrefix, new Dictionary <string, string>()); var loadXml = controller.LoadTests(); var exploreXml = controller.ExploreTests(null); SchemaTestUtils.AssertValidXml(loadXml, "Test.xsd"); SchemaTestUtils.AssertValidXml(exploreXml, "Test.xsd"); }); }
/// <summary> /// LoadTestsAction loads the tests in an assembly. /// </summary> /// <param name="controller">The controller.</param> /// <param name="handler">The callback handler.</param> public LoadTestsAction(FrameworkController controller, object handler) { controller.LoadTests((ICallbackEventHandler)handler); }
/// <summary> /// LoadTestsAction loads the tests in an assembly. /// </summary> /// <param name="controller">The controller.</param> /// <param name="handler">The callback handler.</param> public LoadTestsAction(FrameworkController controller, object handler) { controller.LoadTests((ICallbackEventHandler)handler); }