Example #1
0
        public void Result_AtLeastOneInputTrue_ShouldReturnFalse()
        {
            // Arrange
            NorGate Gate = new NorGate();

            Gate.In = new INode[] { LowStartPoint, HighStartPoint };

            // Act
            bool output = Gate.Result();

            // Assert
            Assert.IsFalse(output);
        }
Example #2
0
        public void Result_AllInputsFalse_ShouldReturnTrue()
        {
            // Arrange
            NorGate Gate = new NorGate();

            Gate.In = new INode[] { LowStartPoint, LowStartPoint };

            // Act
            bool output = Gate.Result();

            // Assert
            Assert.IsTrue(output);
        }