Esempio n. 1
0
 public GateInput1Changed(int time, TwoInputGate gate)
     : base(time)
 {
     this.gate   = gate;
     inputId     = gate.Input1.Id;
     newSignal   = gate.Input1.Signal;
     description = gate.Description;
 }
 public static void TestElement(TwoInputGate gate, int input1, int input2, int expectedOutput)
 {
     gate.Input1.Signal = Signal.FromInt(input1);
     gate.Input2.Signal = Signal.FromInt(input2);
     Assert.AreEqual(Signal.FromInt(expectedOutput), gate.Output.Signal);
 }