public void GetHorseFromXmlFileNotExcetpion() { var xmlFileParser = new XmlFileParser(); string path = "TestData/xyz.xml"; Assert.Throws <FileNotFoundException>(() => xmlFileParser.GetParticipantHorses(path)); }
public void GetHorseFromJsonFileNotExcetpion() { var strategy = new XmlFileParser(); string path = "TestData/xyz.json"; Assert.Throws <FileNotFoundException>(() => strategy.GetParticipantHorses(path)); }
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); }