GetFallingUpdate() public method

Returns true if there is a falling edge and updates the internal state
public GetFallingUpdate ( bool trigger ) : bool
trigger bool Current value of edge triggered state
return bool
コード例 #1
0
 public void AutoUpdateRisingToFalling()
 {
     EdgeTrigger t = new EdgeTrigger();
     t.Update(false);
     Assert.IsTrue(t.GetRisingUpdate(true));
     Assert.IsTrue(t.GetFallingUpdate(false));
 }