public void Correctly_Converts_ToString() { BerlinUhrClock clock = BerlinUhrClock.Parse("00:00:00"); Assert.AreEqual("Y\r\nOOOO\r\nOOOO\r\nOOOOOOOOOOO\r\nOOOO", clock.ToString()); clock = BerlinUhrClock.Parse("00:00:01"); Assert.AreEqual("O\r\nOOOO\r\nOOOO\r\nOOOOOOOOOOO\r\nOOOO", clock.ToString()); clock = BerlinUhrClock.Parse("24:00:00"); Assert.AreEqual("Y\r\nRRRR\r\nRRRR\r\nOOOOOOOOOOO\r\nOOOO", clock.ToString()); clock = BerlinUhrClock.Parse("23:59:59"); Assert.AreEqual("O\r\nRRRR\r\nRRRO\r\nYYRYYRYYRYY\r\nYYYY", clock.ToString()); clock = BerlinUhrClock.Parse("13:17:01"); Assert.AreEqual("O\r\nRROO\r\nRRRO\r\nYYROOOOOOOO\r\nYYOO", clock.ToString()); }
public string convertTime(string aTime) { BerlinUhrClock clock = BerlinUhrClock.Parse(aTime); return(clock.ToString()); }