public void CanCompareTwoNullableDifferentTypeTriplets() { var triplet1 = new Triplet<string, int?, Type>("1", 2, typeof(Console)); var triplet2 = new Triplet<string, int?, Type>("1", 2, typeof(Console)); var triplet3 = new Triplet<string, int?, Type>("1", null, typeof(Console)); triplet2.Should().Be(triplet1); triplet3.Should().Not.Be(triplet1); }
public void CanCompareTwoNullableTriplets() { var pair1 = new Triplet<int?>(1, null, 42); var pair2 = new Triplet<int?>(1, null, 42); var pair3 = new Triplet<int?>(null, 2, null); pair2.Should().Be(pair1); pair3.Should().Not.Be(pair1); }