public void Non_generic_String_Include_with_null_source_called_on_extension_method_throws() { Assert.Equal("source", Assert.Throws <ArgumentNullException>(() => IQueryableExtensions.Include(null, "SomePath")).ParamName); }
public void Lambda_Include_with_null_source_called_on_extension_method_throws() { Assert.Equal( "source", Assert.Throws <ArgumentNullException>(() => IQueryableExtensions.Include <FakeEntity, int>(null, e => e.Id)).ParamName); }
public void Non_generic_String_Include_with_whitespace_string_called_on_extension_method_throws() { Assert.Equal( Strings.ArgumentIsNullOrWhitespace("path"), Assert.Throws <ArgumentException>(() => IQueryableExtensions.Include(_fakeNonGenericDbQuery, " ")).Message); }