public void parseHotelDetailsTest() { //StreamReader reader = new StreamReader("c:\\EnterpriseProject\\Data\\london.csv", true); StreamReader reader = new StreamReader("C:\\Users\\STEVE\\Documents\\GitHub\\EnterpriseProject\\Data\\london.csv", true); IDataParser target = new londoncsvparser(); target.setStreamSource(reader); HotelDetail h = new HotelDetail(); List<HotelDetail> expected = new List<HotelDetail>(); expected.Add(h); List<HotelDetail> actual; actual = target.parseHotelDetails(); Assert.AreEqual(expected.Count, actual.Count); HotelDetail hotel = actual.Find(item => item.city == "Dublin"); Assert.IsNotNull(hotel); }
public void londoncsvparserConstructorTest() { londoncsvparser target = new londoncsvparser(); Assert.Inconclusive("TODO: Implement code to verify target"); }
public void supportsTypeTest() { IDataParser target = new londoncsvparser(); string format = null; bool expected = false; bool actual; actual = target.supportsType(format); Assert.AreEqual(expected, actual); }