示例#1
0
        public void GetHorseFromXmlFileNotExcetpion()
        {
            var    xmlFileParser = new XmlFileParser();
            string path          = "TestData/xyz.xml";

            Assert.Throws <FileNotFoundException>(() => xmlFileParser.GetParticipantHorses(path));
        }
示例#2
0
        public void GetHorseFromJsonFileNotExcetpion()
        {
            var    strategy = new XmlFileParser();
            string path     = "TestData/xyz.json";

            Assert.Throws <FileNotFoundException>(() => strategy.GetParticipantHorses(path));
        }
示例#3
0
        public void GetHorseFromXmlFile()
        {
            var    xmlFileParser = new XmlFileParser();
            string path          = "TestData/Caulfield_Race1.xml";
            var    horses        = xmlFileParser.GetParticipantHorses(path);

            Assert.NotNull(horses);
            Assert.True(horses.Count > 0);
        }