public void ExportXml2() { Dictionary <string, string> exceptions = ExportXmlVersion3.TestFileExceptionMap(); Setup(TestUtil.GetTestFile("relay\\relay.ppen")); string tempOutputFile = TestUtil.GetTestFile("relay\\doublebranch_temp.xml"); string baselineFile = TestUtil.GetTestFile("relay\\doublebranch_baseline2.xml"); var teamAssignment = new RelayVariations(eventDB, CourseId(4), new RelaySettings(101, 143, 6)); var xmlExporter = new ExportRelayVariations3(); xmlExporter.WriteFullXml(tempOutputFile, teamAssignment, eventDB, CourseId(4)); TestUtil.CompareTextFileBaseline(tempOutputFile, baselineFile, exceptions); File.Delete(tempOutputFile); }
public void ExportXml() { Dictionary<string, string> exceptions = ExportXmlVersion3.TestFileExceptionMap(); Setup(TestUtil.GetTestFile("relay\\relay.ppen")); string tempOutputFile = TestUtil.GetTestFile("relay\\doublebranch_temp.xml"); string baselineFile = TestUtil.GetTestFile("relay\\doublebranch_baseline.xml"); var teamAssignment = new RelayVariations(eventDB, CourseId(4), 143, 6); var xmlExporter = new ExportRelayVariations3(); xmlExporter.WriteXml(tempOutputFile, teamAssignment, eventDB, CourseId(4)); TestUtil.CompareTextFileBaseline(tempOutputFile, baselineFile, exceptions); File.Delete(tempOutputFile); }