Exemple #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);
        }
Exemple #2
0
        public void TryGetValue_NoValuesAdded_SetsValueNull()
        {
            var rdd = new RequestDataDictionary();

            string the_data;

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

            Assert.IsNull(the_data);
        }
Exemple #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);
        }
Exemple #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);
        }
        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);
        }
        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);
        }
        public void TryGetValue_NoValuesAdded_SetsValueNull()
        {
            var rdd = new RequestDataDictionary ();

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

            Assert.IsNull (the_data);
        }
        public void TryGetValue_NoValuesAdded_ReturnsFalse()
        {
            var rdd = new RequestDataDictionary ();

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

            Assert.IsFalse (has_value);
        }