Пример #1
0
        public void TestGetFuelCapacity()
        {
            var vehicle = new core.Car(1, 50, "Description");

            Assert.That(vehicle.GetFuelCapacity(), Is.EqualTo(50));
        }
Пример #2
0
        public void TestGetId()
        {
            var vehicle = new core.Car(1, 50, "Description");

            Assert.That(vehicle.GetId(), Is.EqualTo(1));
        }
Пример #3
0
        public void TestDrive()
        {
            var car = new core.Car(0, 0, "car");

            Assert.That(driver.Drive(car), Is.EqualTo("Name drives car"));
        }