public void CookieHeaderValue_TryParse_RejectsInvalidValues(string value) { CookieHeaderValue header; bool result = CookieHeaderValue.TryParse(value, out header); Assert.False(result); }
public void CookieHeaderValue_TryParse_AcceptsValidValues(CookieHeaderValue cookie, string expectedValue) { CookieHeaderValue header; bool result = CookieHeaderValue.TryParse(expectedValue, out header); Assert.True(result); Assert.Equal(expectedValue, header.ToString()); }