public void RemoveString() { ParameterizedStringPartCollection collection = new ParameterizedStringPartCollection(); collection.Add(new ParameterizedStringPart("somename", "somedata")); Assert.IsTrue(collection.Remove("somename")); }
public void RemovePartInexistent() { ParameterizedStringPartCollection collection = new ParameterizedStringPartCollection(); ParameterizedStringPart part = new ParameterizedStringPart("literal-value"); Assert.IsFalse(collection.Remove(part)); }
public void RemoveStringInexistent() { ParameterizedStringPartCollection collection = new ParameterizedStringPartCollection(); Assert.IsFalse(collection.Remove("literal-value")); }
public void RemoveStringNull() { ParameterizedStringPartCollection collection = new ParameterizedStringPartCollection(); Assert.IsFalse(collection.Remove((string)null)); }