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); }
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); }