예제 #1
0
        public void TestResumePartialInterval()
        {
            const string filename = "regression/noTimestampOne.csv";
            StartAdapter(filename, 10, false, true, null, _propertyOrderNoTimestamps);

            // time is 100
            SendTimeEvent(100);
            AssertEvent(1, 1.1, "noTimestampOne.one");

            // time is 150
            SendTimeEvent(50);

            _adapter.Pause();
            // time is 200
            SendTimeEvent(50);
            Assert.IsFalse(_listener.GetAndClearIsInvoked());
            _adapter.Resume();

            AssertEvent(2, 2.2, "noTimestampOne.two");
        }