public void ToString_SwitchedOff() { var secondsLamp = new SecondsLamp(1); var time = new TimeSpan(0, 0, 1); secondsLamp.Process(time); Assert.AreEqual("O", secondsLamp.ToString()); }
public void Process_OddSeconds_IsSwitchedOffLightYellow() { var secondsLamp = new SecondsLamp(1); var time = new TimeSpan(12, 25, 7); secondsLamp.Process(time); Assert.AreEqual(false, secondsLamp.IsSwitchedOn); Assert.AreEqual("Y", secondsLamp.LightColour); }