public void Clear_Always_RemovesAllItems() { // Setup var item1 = new MapLineData("test"); var item2 = new MapLineData("test"); var mapDataCollection = new MapDataCollection("test"); mapDataCollection.Add(item1); mapDataCollection.Add(item2); // Precondition Assert.AreEqual(2, mapDataCollection.Collection.Count()); // Call mapDataCollection.Clear(); // Assert CollectionAssert.IsEmpty(mapDataCollection.Collection); }