public void ValidateDatabaseExistsWorks() { var catalog = "NoneExistsCatalog"; var smo = new SmoOperations(); var results = smo.DatabaseExists(catalog); Assert.IsFalse(smo.DatabaseExists(catalog)); }
public void DefaultCatalogExists() { var ops = new SqlOperations(TestCatalog); SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder(ops.ConnectionString); var catalog = builder.InitialCatalog; var smo = new SmoOperations(); var results = smo.DatabaseExists(catalog); Assert.IsTrue(smo.DatabaseExists(catalog)); }