Пример #1
0
 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);
 }
Пример #2
0
 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);
 }
Пример #3
0
 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);
 }