Esempio n. 1
0
        public void TestIsDrivingStructure()
        {
            Automobile car = new Automobile();

            //Is the car driving
            Assert.AreEqual(false, car.IsDriving());

            //Start the car
            car.SetDriving(true);
            //Is the car Driving
            Assert.IsTrue(car.IsDriving());

            //stop the car
            car.SetDriving(false);
            //has the car stopped driving
            Assert.IsFalse(car.IsDriving());
        }