コード例 #1
0
        public void Must_Return_The_Proper_Value_For_Minutes()
        {
            TimeSplitter timeSplitter = new TimeSplitter();

            int minutes = timeSplitter.GetMinutes(TimeString);

            Assert.AreEqual(ExpectedMinutes, minutes, "Invalid number of minutes.");
        }
コード例 #2
0
        public void Must_Return_The_Proper_Value_For_Seconds()
        {
            TimeSplitter timeSplitter = new TimeSplitter();

            int seconds = timeSplitter.GetSeconds(TimeString);

            Assert.AreEqual(ExpectedSeconds, seconds, "Invalid number of seconds.");
        }
コード例 #3
0
        public void Must_Return_The_Proper_Value_For_Hours()
        {
            TimeSplitter timeSplitter = new TimeSplitter();

            int hours = timeSplitter.GetHours(TimeString);

            Assert.AreEqual(ExpectedHours, hours, "Invalid number of hours.");
        }