Esempio n. 1
0
        public void TestStop()
        {
            const string filename = "regression/timestampOne.csv";
            const int eventsPerSec = -1;

            IList<Object[]> events = new List<Object[]>();
            events.Add(new Object[] {100, 1, 1.1, "timestampOne.one"});
            events.Add(new Object[] {200, 3, 3.3, "timestampOne.three"});

            const bool isLooping = false;
            StartAdapter(filename, eventsPerSec, isLooping, true, "timestamp", _propertyOrderTimestamps);

            AssertFlatEvents(events);

            _adapter.Stop();

            SendTimeEvent(1000);
            Assert.IsFalse(_listener.GetAndClearIsInvoked());

            _adapter.Start();
            AssertFlatEvents(events);
        }