Ejemplo n.º 1
0
        public void FunctionUnderTest_ExpectedResult_UnderCondition(bool inputOne,
                                                                    bool inputTwo,
                                                                    bool expected)
        {
            // Arrange
            m_WireInOne.GetSignal().Returns(inputOne);
            m_WireInTwo.GetSignal().Returns(inputTwo);

            // Act
            m_Sut.Calculate(0);

            // Assert
            m_WireOut.Received().SetSignal(TimeDoesNotMatter,
                                           expected);
        }