コード例 #1
0
        public void GetTime_Returns_Five_To_One_On_Twelve_Fifty_Five()
        {
            FancyClockFormatter target   = new FancyClockFormatter();
            TimeSpan            Time     = new TimeSpan(12, 55, 3);
            TimeWords           expected = new TimeWords();

            expected.One = true; expected.FiveMinute = true; expected.To = true;
            var actual = target.GetTime(Time);

            Assert.AreEqual(expected, actual);
        }
コード例 #2
0
        public void GetTime_Returns_Five_Past_Two_On_Two_Five()
        {
            FancyClockFormatter target   = new FancyClockFormatter();
            TimeSpan            Time     = new TimeSpan(2, 5, 3);
            TimeWords           expected = new TimeWords();

            expected.Two = true; expected.FiveMinute = true; expected.Past = true;
            var actual = target.GetTime(Time);

            Assert.AreEqual(expected, actual);
        }
コード例 #3
0
        public TimeWords RunGetMinuteTest(TimeSpan Time)
        {
            FancyClockFormatter target = new FancyClockFormatter();

            return(target.GetMinute(Time));
        }
コード例 #4
0
ファイル: ClassTests.cs プロジェクト: PCurd/Fancy-Clock
 public void Can_Create_FancyClockFormatter()
 {
     var formatter = new FancyClockFormatter();
 }