Beispiel #1
0
        public static void Occur_Count(DetectorEventCounter testEvent)
        {
            Int32 etalonCount = testEvent.Count;

            testEvent.Occur(null);
            etalonCount++;
            Assert.IsTrue(testEvent.Count == etalonCount);
        }
        public void Init(IDetectorFocus detectorFocus)
        {
            Clean();

            _eventFocusCurrent    = new DetectorEventCounter();
            _eventUnfocusPrevious = new DetectorEventCounter();

            Assert.IsNotNull(detectorFocus);
            _detectorFocus = detectorFocus;
            _detectorFocus.FocusCurrentItem   += DetectorFocus_FocusCurrentItem;
            _detectorFocus.UnfocusPreviosItem += DetectorFocus_UnfocusPreviosItem;
        }
 public void Init()
 {
     _eventCount = new DetectorEventCounter();
 }
Beispiel #4
0
 public static void StartState(DetectorEventCounter testEvent)
 {
     Assert.IsTrue(testEvent.Count == 0);
 }