public void entity_framework_context_from_business_layer_returns_on_testdb() { TestDatabaseEnsurer tester = new TestDatabaseEnsurer(); BaseDBAccess dbAccess = new BaseDBAccess(); Assert.That(tester.IsConnStringPointingToTestDB(dbAccess.Database.Database.Connection.ConnectionString), Is.True); Assert.That(tester.IsOnTestDB(), Is.True); }
public void test_db_correct_db_name_wrong_username(bool isTestDBConnString, string conn) { TestDatabaseEnsurer tester = new TestDatabaseEnsurer(); Assert.That(tester.IsConnStringPointingToTestDB(conn), Is.EqualTo(isTestDBConnString)); }
public void actual_test_db_detects_test(bool isTestDBConnString, string conn) { TestDatabaseEnsurer tester = new TestDatabaseEnsurer(); Assert.That(tester.IsConnStringPointingToTestDB(conn), Is.EqualTo(isTestDBConnString)); }