Jayrock.Json.TestJsonObject.RemoveNonExistingViaGenericCollection C# (CSharp) Method

RemoveNonExistingViaGenericCollection() private method

private RemoveNonExistingViaGenericCollection ( ) : void
return void
        public void RemoveNonExistingViaGenericCollection()
        {
            ICollection<KeyValuePair<string, object>> obj = new JsonObject();
            obj.Add(new KeyValuePair<string, object>("first", 123));
            Assert.AreEqual(1, obj.Count);
            Assert.IsFalse(obj.Remove(new KeyValuePair<string, object>("second", 456)));
            Assert.AreEqual(1, obj.Count);
        }
TestJsonObject