コード例 #1
0
        public void Test_NotGateSimulate()
        {
            LogicComponent not_gate = new NotGate();

            // Check truth table:
            Assert.AreEqual(not_gate.Simulate(new [] { true }), new List <bool> {
                false
            });
            Assert.AreEqual(not_gate.Simulate(new [] { false }), new List <bool> {
                true
            });
        }