Exemplo n.º 1
0
        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);
        }