コード例 #1
0
        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);
        }
コード例 #2
0
        public void EmptyDockedBikes()
        {
            DockingStation dockingstation = new DockingStation();

            Assert.AreEqual(0, dockingstation.GetDockedBikes().Count);
        }