public void Remove_WithInvalidName_ReturnsFalse() { var headers = new HttpHeaders(); headers["abc"] = "123"; Assert.IsFalse(headers.Remove("defg")); }
public void Remove_WithValidNameDifferentCase_ReturnsTrue() { var headers = new HttpHeaders(); headers["abc"] = "123"; Assert.IsTrue(headers.Remove("ABC")); }
public void Remove_WithValidName_RemoveFromList() { var headers = new HttpHeaders(); headers["abc"] = "123"; headers.Remove("abc"); Assert.AreEqual(0, headers.Count); }
public void Remove_WithValidName_ReturnsTrue() { var headers = new HttpHeaders(); headers["abc"] = "123"; Assert.IsTrue(headers.Remove("abc")); }