public void Calculate_AddsToLogString_WhenCalled() { // Arrange m_Wire.GetSignal().Returns(true); // Act m_Sut.Calculate(TimeDoesNotMatter); // Assert Assert.AreEqual("[0,1]", m_Sut.GetLog()); }
public void Probe_OneNegative_OutputPositive() { // Arrange var port = new Probe(); port.Previous.Add(new Input { Value = Bit.LOW }); // Act port.Calculate(); // Assert Assert.AreEqual(Bit.LOW, port.Value); }