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()); }
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); }