Пример #1
0
        public void Calculate_SetsWireOutToTrue_ForWireInIsFalse()
        {
            // Arrange
            Inverter sut = CreateSut(m_WireIn,
                                     m_WireOut);

            m_WireIn.SetSignal(TimeDoesNotMatter,
                               false);

            // Act
            sut.Calculate(TimeDoesNotMatter);

            // Assert
            m_WireOut.GetSignal().ShouldBeTrue();
        }