public void Play() { DiSetup.Tests(); ITimeService timeService = DiHelper.GetService <ITimeService>(); timeService.Align(); timeService.Play(); //TODO: address issue that this does not work in 'bunch run mode' Assert.AreEqual(1, timeService.CurrentMultiplicator); Assert.IsNull(timeService.CurrentTarget); Assert.IsTrue(StandardTimeServiceTests.timeEquals(timeService.ElapsedTimeAbsolute, timeService.ElapsedTimeRelative, new TimeSpan(0, 0, 1))); }
public void PauseNegative() { DiSetup.Tests(); ITimeService timeService = DiHelper.GetService <ITimeService>(); timeService.Align(); timeService.Play(); var testTime = timeService.ElapsedTimeRelative; //timeService.Pause(); //<- do NOT pause here Thread.Sleep(100); Assert.AreNotEqual(0, timeService.CurrentMultiplicator); Assert.IsNull(timeService.CurrentTarget); Assert.IsTrue(testTime < timeService.ElapsedTimeRelative); //TODO: faisl in batch mode }