public void OpInEquality() { object leftEither = LeftRightExtensions.AsLeft <int, string>(12); object rightEither = LeftRightExtensions.AsRight <int, string>("12"); // ReSharper disable once ConditionIsAlwaysTrueOrFalse (leftEither != rightEither).Should().BeTrue(); }
public void GetHashCodeReturnsHashCodeOfLeftValue() { var leftEither = LeftRightExtensions.AsLeft <int, string>(12); leftEither.GetHashCode().Should().Be(12.GetHashCode()); }