public void CanReleaseBike() { var bike = Mock.Of <Bike>(); DockingStation dockingstation = new DockingStation(); dockingstation.DockBike(bike); Assert.AreEqual(1, dockingstation.GetDockedBikes().Count); dockingstation.ReleaseBike(); Assert.AreEqual(0, dockingstation.GetDockedBikes().Count); }
public void EmptyDockedBikes() { DockingStation dockingstation = new DockingStation(); Assert.AreEqual(0, dockingstation.GetDockedBikes().Count); }