public void RemovesFromSingleItemDictionary() { // Arrange var shapeBag = new ShapeBag(); shapeBag.AddShape("triangle", new Triangle()); // Act shapeBag.RemoveShape("triangle"); // Assert Assert.AreEqual(0, shapeBag.GetShapes().Count); }
public void DoesNotRemoveShapeThatDoesNotExist() { // Arrange var shapeBag = new ShapeBag(); shapeBag.AddShape("rectangle", new Rectangle()); // Act shapeBag.RemoveShape("triangle"); // Assert Assert.AreEqual(1, shapeBag.GetShapes().Count); }