Пример #1
0
 public void With_null_existingConnection_throws()
 {
     Assert.Equal(
         "existingConnection", Assert.Throws <ArgumentNullException>(() => Database.Exists((DbConnection)null)).ParamName);
 }
Пример #2
0
 public void With_whitespace_nameOrConnectionString_throws()
 {
     Assert.Equal(
         Strings.ArgumentIsNullOrWhitespace("nameOrConnectionString"),
         Assert.Throws <ArgumentException>(() => Database.Exists(" ")).Message);
 }