public void Can_Create_FancyClockFormatter() { var formatter = new FancyClockFormatter(); }
public FancyClock(FancyClockFormatter formatter) { this.formatter = formatter; }
public TimeWords RunGetMinuteTest(TimeSpan Time) { FancyClockFormatter target = new FancyClockFormatter(); return target.GetMinute(Time); }
public FancyClock(FancyClockFormatter formatter) { this.formatter = formatter; }
public void GetTime_Returns_Five_To_Two_On_One_Fifty_Five() { FancyClockFormatter target = new FancyClockFormatter(); TimeSpan Time = new TimeSpan(1, 55, 3); TimeWords expected = new TimeWords(); expected.Two = true; expected.FiveMinute = true; expected.To = true; var actual = target.GetTime(Time); Assert.AreEqual(expected, actual); }