Exemplo n.º 1
0
        public void EqualsEitherLeftShouldReturnFalseWhenSecondValueNull()
        {
            // Arrange
            var first  = new EitherLeft <string>("value");
            var second = new EitherLeft <string>(null);

            // Act
            var result = first.Equals(second);

            // Assert
            result.Should().BeFalse();
        }
Exemplo n.º 2
0
        public void EqualsEitherLeftShouldReturnTrueWhenBothValueSameNotNull()
        {
            // Arrange
            var first  = new EitherLeft <string>("value");
            var second = new EitherLeft <string>("value");

            // Act
            var result = first.Equals(second);

            // Assert
            result.Should().BeTrue();
        }