It would be nice to support this scenario:
var number = 5;
var nullableNumber = (int?) 5;
number.Should().Be(nullableNumber);
is better than:
number.Should().Be(nullableNumber.Value)
when nullableNumber is null (we can display a better error message than NullObjectException).
var number = 5;
var nullableNumber = (int?) 5;
number.Should().Be(nullableNumber);
is better than:
number.Should().Be(nullableNumber.Value)
when nullableNumber is null (we can display a better error message than NullObjectException).