public void ReturnCorrectHeight_ResetToInnitialHeight() { var chair = new ConvertibleChair("Visage", "Wood", 65, 1.20m, 4); chair.Convert(); chair.Convert(); Assert.AreEqual(1.20m, chair.Height); }
public void ReturnCorrectHeight_WhenConvertIsCalled() { var chair = new ConvertibleChair("Visage", "Wood", 65, 1.20m, 4); chair.Convert(); Assert.AreEqual(0.10, chair.Height); }
public void Convert_WhenConvertIsCalled() { var chair = new ConvertibleChair("Visage", "Wood", 65, 1.20m, 4); chair.Convert(); Assert.AreEqual(true, chair.IsConverted); }
public void ReturnCorrectString_WhenToStringIsCalledWithConvertedState() { var chair = new ConvertibleChair("Visage", "Wood", 65, 1.20m, 4); chair.Convert(); string expected = "Type: ConvertibleChair, Model: Visage, Material: Wood, Price: 65, Height: 0,10Legs: 4State: Converted"; Assert.AreEqual(expected, chair.ToString()); }