示例#1
0
        public void OccurrenceDataExecutionTime()
        {
            var random = new Random();
            var ts     = new TimeSpan(random.Next());
            var od     = new OccurrenceData()
            {
                Duration = ts.Ticks
            };

            Assert.AreEqual <TimeSpan>(ts, od.ExecutionTime());
        }
示例#2
0
        public void ExecutionTimeTest()
        {
            var ramdom = new Random();
            var number = ramdom.Next();
            var data   = new OccurrenceData()
            {
                Duration = number
            };
            var expected = new TimeSpan(number);
            var actual   = data.ExecutionTime();

            Assert.AreEqual(expected, actual);
        }