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(); }
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(); }