Esempio n. 1
0
        public static void AssertStart(MockTimer timer, Action startAction, TimeSpan interval, string message)
        {
            timer.SetExpectedInterval(interval);
            timer.ExpectedStartCount = 1;

            startAction();

            TimerHelper.AssertAndResetCounts(timer, message);
        }
Esempio n. 2
0
        public static void AssertInitialization(MockTimer timer, Action initializationAction, TimeSpan interval, string message)
        {
            timer.SetExpectedInterval(interval);
            timer.ExpectedTickAddCount = 1;

            initializationAction();

            TimerHelper.AssertAndResetCounts(timer, message);
        }
        public static void AssertStart(MockTimer timer, Action startAction, TimeSpan interval, string message)
        {
            timer.SetExpectedInterval(interval);
            timer.ExpectedStartCount = 1;

            startAction();

            TimerHelper.AssertAndResetCounts(timer, message);
        }
        public static void AssertInitialization(MockTimer timer, Action initializationAction, TimeSpan interval, string message)
        {
            timer.SetExpectedInterval(interval);
            timer.ExpectedTickAddCount = 1;

            initializationAction();

            TimerHelper.AssertAndResetCounts(timer, message);
        }