Beispiel #1
0
        public void Get_Returns_Null_When_No_Matching_ConnectionStrings_Value()
        {
            const string name = "kfnnpa";

            var source = new ConnectionStringsSource();

            string value;
            var    result = source.Get(name, null, out value);

            Assert.IsNull(value);
            Assert.IsFalse(result);
        }
Beispiel #2
0
        public void Get_Returns_String_From_ConnectionStrings()
        {
            const string name     = "name";
            const string expected = "value";

            var source = new ConnectionStringsSource();

            string value;
            var    result = source.Get(name, null, out value);

            Assert.AreEqual(expected, value);
            Assert.IsTrue(result);
        }