public void TestEquals_WithNonEmptyEquals_ShouldReturnEqualityResultForEachItem() { var result1 = Subject.TestEquals(1, s => 1, s => 2); var result2 = Subject.TestEquals(1, new[] { 1, 2 }); Assert.Collection(result1, r => Assert.True(r), r => Assert.False(r)); Assert.Collection(result2, r => Assert.True(r), r => Assert.False(r)); }
public void TestInequal_WithNullUnequals_ShouldThrow() { var subject = new object(); Assert.Throws <ArgumentNullException>( "unequals", () => Subject.TestInequal(subject, (IEnumerable <Func <object, object> >)null)); Assert.Throws <ArgumentNullException>( "unequals", () => Subject.TestInequal(subject, (IEnumerable <object>)null)); }
public void TestInequal_WithNullSubject_ShouldThrow() { Assert.Throws <ArgumentNullException>( "subject", () => Subject.TestInequal(null, (object s) => new object())); Assert.Throws <ArgumentNullException>( "subject", () => Subject.TestInequal((object)null, Enumerable.Empty <Func <object, object> >())); Assert.Throws <ArgumentNullException>( "subject", () => Subject.TestInequal(null, Enumerable.Empty <object>())); }