Ejemplo n.º 1
0
        public static void Occur_Null(DetectorEvent testeeDetector)
        {
            testeeDetector.Occur(null);

            Assert.IsTrue(testeeDetector.IsOccurred);
            Assert.IsFalse(testeeDetector.IsOccurredBy(_sender_1));

            Assert.IsFalse(testeeDetector.IsOccurredBy(null));
            Assert.IsFalse(testeeDetector.IsOccurredBy(_sender_2));
        }
Ejemplo n.º 2
0
 public static void StartState(DetectorEvent testeeDetector)
 {
     Assert.IsFalse(testeeDetector.IsOccurred);
     Assert.IsFalse(testeeDetector.IsOccurredBy(null));
     Assert.IsFalse(testeeDetector.IsOccurredBy(_sender_1));
 }