コード例 #1
0
        public void TimeOfDayClass_FromTimeSpanMethod_ReturnsObjectWithCorrectAbsoluteSecondsProperty()
        {
            int      testPeriod = _rnd.Next(86400);
            TimeSpan span       = new TimeSpan(0, 0, testPeriod);

            TimeOfDay testOutput = TimeOfDay.FromTimeSpan(span);

            Assert.AreEqual(testPeriod, testOutput.AbsoluteSeconds);
        }