コード例 #1
0
        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);
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        public void actual_test_db_detects_test(bool isTestDBConnString, string conn)
        {
            TestDatabaseEnsurer tester = new TestDatabaseEnsurer();

            Assert.That(tester.IsConnStringPointingToTestDB(conn), Is.EqualTo(isTestDBConnString));
        }