Exemplo n.º 1
0
 public void Update()
 {
     if (inputGenerator.GeneratedLongPress())
     {
         if (LongPressExecuted != null)
         {
             LongPressExecuted();
         }
     }
     if (inputGenerator.GeneratedTap())
     {
         if (TapExecuted != null)
         {
             TapExecuted();
         }
     }
 }
Exemplo n.º 2
0
 public void TestIfUserIsMakingTap()
 {
     generator.GeneratedTap().Returns(true);
     inputReader.TapExecuted += HandleActionExecuted;
     AssertActionWasCalled();
 }