public void ShouldBeOneMoreImageWhenOneAdded() { File.Create("testImage2.jpg"); Landmark landmark = new Landmark("title", 0.0, 0.0, "description", "testImage1.jpg"); landmark.AddImage("testImage2.jpg"); Assert.AreEqual(2, landmark.Images.Count); }
public void ShouldThrowExceptionIfUnexistentImageIsAdded() { Landmark landmark = new Landmark(1, "title", "description", new List <string>() { "testImage1.jpg" }, 0.0, 0.0); landmark.AddImage("unexistentImage.jpg"); }