Beispiel #1
0
        public void AddGasCar_ShouldBeCorrect()
        {
            CarRepository _gasCar = new CarRepository();

            TypeOfCar gasCar    = new TypeOfCar();
            TypeOfCar garCarTwo = new TypeOfCar();

            _gasCar.AddGasCar(gasCar);
            _gasCar.AddGasCar(garCarTwo);

            int actual   = _gasCar.GasCars().Count;
            int expected = 2;

            Assert.AreEqual(expected, actual);
        }