public void Creates_Red_Lexus() { Lexus lexus = new Lexus(); RedCarDecorator redCarDecorator = new RedCarDecorator(lexus); Assert.Equal("Lexus is being driven.", redCarDecorator.Drive()); Assert.Equal("Red", lexus.Color); }
public void ShowCurrentSpeed_NewLexus_ReturnsPorscheSpeed() { //arrange const string expected = "40"; var test = new Lexus(); test.StartEngine(); test.SpeedUp(); test.SpeedUp(); test.UseNitrousOxideEngine(); //act var actual = test.ShowCurrentSpeed(); //assert Assert.Equal(expected, actual); }