示例#1
0
        public void ContainsKey_NoItems_ReturnsFalse()
        {
            var rdd = new RequestDataDictionary();

            bool has_item = rdd.ContainsKey("foobar");

            Assert.IsFalse(has_item);
        }
示例#2
0
        public void ContainsKey_ItemAdded_ReturnsTrue()
        {
            var rdd = new RequestDataDictionary();

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

            bool has_item = rdd.ContainsKey("foobar");

            Assert.IsTrue(has_item);
        }
示例#3
0
        public void ContainsKey_ItemInCollection_ReturnsTrue()
        {
            var nvc = new DataDictionary();
            var rdd = new RequestDataDictionary();

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

            bool has_item = rdd.ContainsKey("foobar");

            Assert.IsTrue(has_item);
        }
示例#4
0
        public void Clear_SingleItemAdded_RemovesItem()
        {
            var rdd = new RequestDataDictionary();

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

            string dummy;
            bool   has_item = rdd.ContainsKey("foobar");

            Assert.IsFalse(has_item);
        }
示例#5
0
        public void Clear_ItemInCollection_RemovesItem()
        {
            var nvc = new DataDictionary();
            var rdd = new RequestDataDictionary();

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

            rdd.Clear();

            bool has_item = rdd.ContainsKey("foobar");

            Assert.IsFalse(has_item);
        }
示例#6
0
        public void Clear_ItemInCollection_RemovesItem()
        {
            var nvc = new DataDictionary ();
            var rdd = new RequestDataDictionary ();

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

            rdd.Clear ();

            bool has_item = rdd.ContainsKey ("foobar");

            Assert.IsFalse (has_item);
        }
        public void ContainsKey_NoItems_ReturnsFalse()
        {
            var rdd = new RequestDataDictionary ();

            bool has_item = rdd.ContainsKey ("foobar");
            Assert.IsFalse (has_item);
        }
        public void ContainsKey_ItemInCollection_ReturnsTrue()
        {
            var nvc = new DataDictionary ();
            var rdd = new RequestDataDictionary ();

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

            bool has_item = rdd.ContainsKey ("foobar");
            Assert.IsTrue (has_item);
        }
        public void ContainsKey_ItemAdded_ReturnsTrue()
        {
            var rdd = new RequestDataDictionary ();

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

            bool has_item = rdd.ContainsKey ("foobar");
            Assert.IsTrue (has_item);
        }
示例#10
0
        public void Clear_SingleItemAdded_RemovesItem()
        {
            var rdd = new RequestDataDictionary ();

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

            string dummy;
            bool has_item = rdd.ContainsKey ("foobar");

            Assert.IsFalse (has_item);
        }