public void Constructor_AddsListener_WhenCalled() { // Arrange // Act // Assert m_WireIn.Received().SignalChangedEvent += m_Sut.SignalChangedHandler; }
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); }