public void ToString_SwitchedOn() { var lamp = new MinutesSecondRowLamp(4); var time = new TimeSpan(0, 59, 0); lamp.Process(time); Assert.AreEqual("Y", lamp.ToString()); }
public void ToString_SwitchedOff() { var secondsLamp = new MinutesSecondRowLamp(1); var time = new TimeSpan(0, 55, 0); secondsLamp.Process(time); Assert.AreEqual("O", secondsLamp.ToString()); }
public void Process_FourthLampFiftyNineMins_IsSwitchedOnLightYellow() { var lamp = new MinutesSecondRowLamp(4); var time = new TimeSpan(0, 59, 0); lamp.Process(time); Assert.AreEqual(true, lamp.IsSwitchedOn); Assert.AreEqual("Y", lamp.LightColour); }