Esempio n. 1
0
        public void Result_AtLeastOneInputTrue_ShouldReturnTrue()
        {
            // Arrange
            OrGate Gate = new OrGate();

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

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

            // Assert
            Assert.IsTrue(output);
        }
Esempio n. 2
0
        public void Result_AllInputsFalse_ShouldReturnFalse()
        {
            // Arrange
            OrGate Gate = new OrGate();

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

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

            // Assert
            Assert.IsFalse(output);
        }