示例#1
0
 public void Invert_Floating_Floating()
 {
     InvertorGate.Invert(DigitalLevel.Floating).Should().Be(DigitalLevel.Floating);
 }
示例#2
0
 public void Invert_Low_High()
 {
     InvertorGate.Invert(DigitalLevel.Low).Should().Be(DigitalLevel.High);
 }
示例#3
0
 public void Invert_NegEdge_PosEdge()
 {
     InvertorGate.Invert(DigitalLevel.NegEdge).Should().Be(DigitalLevel.PosEdge);
 }
示例#4
0
 protected override void OnInputChanged(DigitalSignalConsumer input, DigitalSignalProvider source)
 {
     Output.Write(InvertorGate.Invert(OrFunction()));
 }