Пример #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);
        }