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

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

            Assert.AreEqual(0, rdd.Count);
        }
示例#2
0
        public void Clear_ItemInCollection_SetsCountZero()
        {
            var nvc = new DataDictionary();
            var rdd = new RequestDataDictionary();

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

            rdd.Clear();
            Assert.AreEqual(0, rdd.Count);
        }
示例#3
0
        public void Clear_ItemInCollection_SetsCountZero()
        {
            var nvc = new DataDictionary ();
            var rdd = new RequestDataDictionary ();

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

            rdd.Clear ();
            Assert.AreEqual (0, rdd.Count);
        }
示例#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_SingleItemAdded_RemovesItem()
        {
            var rdd = new RequestDataDictionary ();

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

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

            Assert.IsFalse (has_item);
        }
        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);
        }
示例#7
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 Clear_SingleItemAdded_SetsCountZero()
        {
            var rdd = new RequestDataDictionary ();

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

            Assert.AreEqual (0, rdd.Count);
        }