public void Bike_ShouldHaveWorkingFalse_WhenBreakBikeIsCalled()
        {
            var bike = new Bike();

            bike.BreakBike();

            Assert.False(bike.Working);
        }
        public void Bike_ShouldHaveWorkingTrue_WhenFixBikeIsCalledOnBrokenBike()
        {
            var bike = new Bike();

            bike.BreakBike();

            Assert.False(bike.Working);

            bike.FixBike();

            Assert.True(bike.Working);
        }
Beispiel #3
0
        public void MaintenanceGarage_RepairBike_ShouldSetBikeWorkingStateToTrue()
        {
            var bike   = new Bike();
            var garage = new MaintenanceGarage();

            bike.BreakBike();

            Assert.False(bike.Working);

            garage.RepairBike(bike);

            Assert.True(bike.Working);
        }