예제 #1
0
        public void When_AdjustTimeByMinus30Minutes_Expect_TimeAdjustedbyMinus30Minutes()
        {
            TFSysTimeFake.Instance.ReturnTimeOf(_startTime1, _startTime1.AddMinutes(45.5));
            _timer.Start();
            _timer.Stop();

            _timer.AdjustTime(TimeSpan.FromMinutes(-30));

            VerifyTotalTime(TimeSpan.FromMinutes(15.5), _timer.TotalTime);
        }
예제 #2
0
 private void Add30Execute()
 {
     _frankenTimer.AdjustTime(TimeSpan.FromMinutes(30));
     RaisePropertyChanged("TimeGathered");
 }