Inheritance: MyConfigBasedClass
Exemplo n.º 1
0
        public void IsConnectionValid_BadConnectionString_ReturnsFalse()
        {
            TestableConfigClass myclass = new TestableConfigClass();
            myclass.theConnectionStringToReturn = "blah";//does not contain 'catalog'

            bool stringValid = myclass.IsConnectionStringValid();
            Assert.IsFalse(stringValid);
        }
Exemplo n.º 2
0
        public void IsConnectionValid_BadConnectionString_ReturnsFalse()
        {
            TestableConfigClass myclass = new TestableConfigClass();

            myclass.theConnectionStringToReturn = "blah";//does not contain 'catalog'

            bool stringValid = myclass.IsConnectionStringValid();

            Assert.IsFalse(stringValid);
        }