Ejemplo n.º 1
0
 public void With_null_existingConnection_throws()
 {
     Assert.Equal(
         "existingConnection", Assert.Throws <ArgumentNullException>(() => Database.Exists((DbConnection)null)).ParamName);
 }
Ejemplo n.º 2
0
 public void With_whitespace_nameOrConnectionString_throws()
 {
     Assert.Equal(
         Strings.ArgumentIsNullOrWhitespace("nameOrConnectionString"),
         Assert.Throws <ArgumentException>(() => Database.Exists(" ")).Message);
 }