예제 #1
0
        public void TryGetValue_NoValuesAdded_ReturnsFalse()
        {
            var rdd = new RequestDataDictionary();

            string dummy;
            bool   has_value = rdd.TryGetValue("foobar", out dummy);

            Assert.IsFalse(has_value);
        }
예제 #2
0
        public void TryGetValue_NoValuesAdded_SetsValueNull()
        {
            var rdd = new RequestDataDictionary();

            string the_data;

            rdd.TryGetValue("foobar", out the_data);

            Assert.IsNull(the_data);
        }
예제 #3
0
        public void TryGetValue_SingleAddedValueMatches_ReturnsTrue()
        {
            var rdd = new RequestDataDictionary();

            rdd.Add("foobar", "baz");

            string dummy;
            bool   has_value = rdd.TryGetValue("foobar", out dummy);

            Assert.IsTrue(has_value);
        }
예제 #4
0
        public void TryGetValue_SingleAddedValueMatches_SetsData()
        {
            var rdd = new RequestDataDictionary();

            rdd.Add("foobar", "baz");

            string the_data;

            rdd.TryGetValue("foobar", out the_data);

            Assert.AreEqual("baz", the_data);
        }
예제 #5
0
        public void TryGetValue_SingleAddedValueMatches_SetsData()
        {
            var rdd = new RequestDataDictionary ();

            rdd.Add ("foobar", "baz");

            string the_data;
            rdd.TryGetValue ("foobar", out the_data);

            Assert.AreEqual ("baz", the_data);
        }
예제 #6
0
        public void TryGetValue_SingleAddedValueMatches_ReturnsTrue()
        {
            var rdd = new RequestDataDictionary ();

            rdd.Add ("foobar", "baz");

            string dummy;
            bool has_value = rdd.TryGetValue ("foobar", out dummy);

            Assert.IsTrue (has_value);
        }
예제 #7
0
        public void TryGetValue_NoValuesAdded_SetsValueNull()
        {
            var rdd = new RequestDataDictionary ();

            string the_data;
            rdd.TryGetValue ("foobar", out the_data);

            Assert.IsNull (the_data);
        }
예제 #8
0
        public void TryGetValue_NoValuesAdded_ReturnsFalse()
        {
            var rdd = new RequestDataDictionary ();

            string dummy;
            bool has_value = rdd.TryGetValue ("foobar", out dummy);

            Assert.IsFalse (has_value);
        }