public void NonWindowsLoginTest() { ConnectionSetup connectionSetup = new ConnectionSetup(hostName, "TestUser", "TestPass", false); connectionSetup.Timeout = 1; SQLServerConnector conn = new SQLServerConnector(connectionSetup); Assert.IsNotEmpty(conn.GetDatabaseNames()); }
public void DatabaseExistsTest() { ConnectionSetup connectionSetup = new ConnectionSetup(hostName, "", "", true); connectionSetup.Timeout = 1; SQLServerConnector conn = new SQLServerConnector(connectionSetup); Assert.Contains(dbTestName, conn.GetDatabaseNames().ToList()); }
public void TimeoutTest() { string hostNameDoesntExist = "testest"; ConnectionSetup connectionSetup = new ConnectionSetup(hostNameDoesntExist, "", "", true); connectionSetup.Timeout = 1; SQLServerConnector conn = new SQLServerConnector(connectionSetup); conn.GetDatabaseNames(); }