Exemplo n.º 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);
        }
Exemplo n.º 2
0
        public void TryGetValue_NoValuesAdded_SetsValueNull()
        {
            var rdd = new RequestDataDictionary();

            string the_data;

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

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

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

            Assert.IsNull (the_data);
        }
Exemplo n.º 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);
        }