示例#1
0
        public void It_Should_Remove_A_Value()
        {
            var dict = new LiquidHash {
                { "key", LiquidString.Create("test") }
            };

            dict.Remove("key");
            Assert.Empty(dict);
        }
示例#2
0
        public void It_Should_Remove_Values()
        {
            var dict = new LiquidHash {
                { "key", LiquidString.Create("test") }
            };

            dict.Remove("key");
            Assert.False(dict.Values.Any());
        }
示例#3
0
        public void It_Should_Remove_A_Value()
        {
            var dict = new LiquidHash {
                { "key", LiquidString.Create("test") }
            };

            dict.Remove("key");
            Assert.That(dict.Count, Is.EqualTo(0));
        }