Ejemplo n.º 1
0
        public void EventTrackEntering()
        {
            setBoundary(100, 1000);
            Data data = new Data("Data1", 200, 500, 500, "data");

            List <Data> list = new List <Data>();

            _monitor.SetShareList(ref list);

            Assert.That(_monitor.EventTracker(data).Equals(EventType.ENTERING));
        }
Ejemplo n.º 2
0
        public void UpdateOnEnteringLogReceived()
        {
            var data = new Data("", 0, 0, 0, "");

            _monitor.EventTracker(data).Returns(EventType.ENTERING);

            _airspace.Update(new List <Data> {
                data
            });

            _log.Received(1).WriteNotification(data, false);
        }