public void RemoveKeyTest() { CLArguments removeList = this.Template.Clone(); Assert.IsFalse(removeList.RemoveKey(NOT_EXIST_KEY), "Did \"removed\" non-existant key"); Assert.IsTrue(removeList.RemoveKey(KEY), "Didn't removed existant key"); var keyAndValuesExistance = new bool[] { removeList.Contains(KEY), removeList.Contains(VALUE), removeList.Contains(SEC_VALUE), }; Assert.IsTrue(keyAndValuesExistance.All(isContain => !isContain), "Key, or some of it's values still exists in list"); }