예제 #1
0
 public void SignalingEdgeWhenPreviousIsTrueShouldSetPreviousToFalse()
 {
     var mouseButtonState = new MouseButtonState();
     mouseButtonState.IsPreviousEdge = true;
     mouseButtonState.IsEdge = true;
     Assert.That(mouseButtonState.IsPreviousEdge, Is.False);
 }
예제 #2
0
 public void UnsignalingEdgeWhenPreviousIsFalseShouldSetPreviousToTrue()
 {
     var mouseButtonState = new MouseButtonState();
     mouseButtonState.IsEdge = true;
     mouseButtonState.IsPreviousEdge = false;
     mouseButtonState.IsEdge = false;
     Assert.That(mouseButtonState.IsPreviousEdge, Is.True);
 }