public void ClassicEqualAssertion() { Car myCar = new Car("Lancia", "Delta", "black"); myCar.PaintCar("blue"); Assert.AreEqual("blue", myCar.Color); }
public void ConstraintEqualAssertion() { Car myCar = new Car("Lancia", "Delta", "black"); myCar.PaintCar("red"); Assert.That(myCar.Color, Is.EqualTo("red")); }
public void PaintJobTest() { // Arrange Car myCar = new Car("Maserati", "Ghibli", "green"); // Act myCar.PaintCar("blue"); // Assert Assert.AreEqual("blue", myCar.Color); }
public void ClassicEqualAssertion() { myCar.PaintCar("blue"); Assert.AreEqual("blue", myCar.Color); }