public void parseAmenityTest() { IDataParser target = new CSVParser(); // TODO: Initialize to an appropriate value List<Amenity> expected = null; // TODO: Initialize to an appropriate value List<Amenity> actual; actual = target.parseAmenity("Art Centres"); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void setStreamSourceTest() { StreamReader reader = new StreamReader("C:\\Users\\mcoffey\\EF_Project\\RateMyAmenity2\\RateMyAmenity\\RateMyAmenity\\Content\\ArtCentres.csv",true); // TODO: Initialize to an appropriate value IDataParser target = new CSVParser(); target.setStreamSource(reader); //Amenity a1 = new Amenity(); // a1.Name = "Draiocht"; // List<Amenity> expected = new List<Amenity>(); //expected.Add(a); List<Amenity> actual; actual = target.parseAmenity("Art Centres"); Assert.AreEqual(4, actual.Count); Amenity amenity = actual.Find(item => item.Website == "http://www.seamusenniscentre.com"); }