Ejemplo n.º 1
0
        public void TestBikeBrakingNotGetLessThanZero()
        {
            Bike bike = Bike;

            bike.Pedal(10);

            bike.Braking(100);

            Assert.AreEqual(0, bike.Speed);

            Debug.Write(bike.Speed);
        }
Ejemplo n.º 2
0
        public void TestBikeBraking()
        {
            Bike bike = Bike;

            bike.Pedal(10);

            bike.Braking(5);

            Debug.Write(bike.Speed);

            Assert.AreEqual(65, bike.Speed);
        }