Beispiel #1
0
        public static AndConstraint <ObjectAssertions> NotBeUsing(this ObjectAssertions assertions, object unexpected, IEqualityComparerSource source, string because = "", params object[] reasonArgs)
        {
            var actual   = assertions.Subject;
            var comparer = actual == null ? ReferenceEqualsEqualityComparer.Instance : source.GetComparer(actual.GetType());

            return(assertions.NotBeUsing(unexpected, comparer, because, reasonArgs));
        }