I'm using NUnit 2.6.2 + Fluent Assertions 2.0.1.
I want to assert that two references do NOT point to the same object instance. I can't find a clean way to express that.
NUnit has Assert.ReferenceEquals(ref1, ref2)
- but I can't find the negated assertion.
In Fluent Assertions I can't find anything to directly support this scenario.
The only way I could do it was like this:
NUnit: Assert.False(object.ReferenceEquals(ref1, ref2));
Fluent: object.ReferenceEquals(ref1, ref2).Should().BeFalse();
Both of these seem less than ideal in terms of minimal noise. Is there a better way?