public void DateGetterSetterIncorrectTest() { var car = new CarEntity(); var testDate = new DateTime(2017, 11, 27); car.SetDate(new DateTime(2017, 11, 28)); Assert.AreNotEqual(car.GetDate(), testDate); }
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 ); }