Esempio n. 1
0
        public void PriceGetterSetterCorrectTest()
        {
            var car       = new CarEntity();
            var testPrice = 17748;

            car.SetPrice(testPrice);
            Assert.AreEqual(car.GetPrice(), testPrice);
        }
Esempio n. 2
0
        public void CarConstructorIncorrectTest()
        {
            var testDate      = new DateTime(2017, 11, 27);
            var testBrandName = "CorrectBrand";
            var testPrice     = 17748;

            var car = new CarEntity(testDate, testBrandName, testPrice);

            Assert.True(
                car.GetBrandName() != "IncorrectBrand" &&
                car.GetDate() != new DateTime(2017, 11, 28) &&
                car.GetPrice() != 17747
                );
        }