Пример #1
0
 public void Constructor_AddsListener_WhenCalled()
 {
     // Arrange
     // Act
     // Assert
     m_WireIn.Received().SignalChangedEvent += m_Sut.SignalChangedHandler;
 }
Пример #2
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);
        }