Beispiel #1
0
            public void Equals_ReturnsTrue_WhenTheCaseRequestsAreTheSame()
            {
                // Arrange
                UseCaseRequest <ResponseA> useCaseRequest = Substitute.ForPartsOf <UseCaseRequest <ResponseA> >();
                bool actual;

                // Act
                actual = useCaseRequest.Equals(useCaseRequest);

                // Assert
                Assert.True(actual);
            }
Beispiel #2
0
            public void Equals_ReturnsFalse_WhenTheCaseRequestIsDifferentType()
            {
                // Arrange
                UseCaseRequest <ResponseA> useCaseRequest = Substitute.ForPartsOf <UseCaseRequest <ResponseA> >();
                UseCaseRequest <ResponseB> other          = Substitute.ForPartsOf <UseCaseRequest <ResponseB> >();
                bool actual;

                // Act
                actual = useCaseRequest.Equals(other);

                // Assert
                Assert.False(actual);
            }
Beispiel #3
0
            public void Equals_ReturnsFalse_WhenTheUseCaseRequestIsNull()
            {
                // Arrange
                UseCaseRequest <ResponseA> useCaseRequest = Substitute.ForPartsOf <UseCaseRequest <ResponseA> >();
                UseCaseRequest <ResponseA> other          = default;
                bool actual;

                // Act
                actual = useCaseRequest.Equals(other);

                // Assert
                Assert.False(actual);
            }