public void AddVideosToLibrary() { // setup Library Videos = new Library(TypeOfVideo.TVShow); Videos.Add(name, genre, description, year); // asserts Assert.AreEqual(Videos.Length(), 1, "Library size did not increment"); Assert.IsTrue(Videos.Exists(name), "Video does not exist after adding"); Assert.IsFalse(Videos.Exists("doesn't exist"), "Video exists even though it shouldn't"); }
public void RemoveVideosFromLibrary() { //setup Library Videos = new Library(TypeOfVideo.TVShow); Videos.Add(name, genre, description, year); // asserts Assert.AreEqual(Videos.Remove(name), 1, "Number of videos removed does not match expected."); Assert.AreEqual(Videos.Length(), 0, "Size of library did not decrease after removal"); }