public void SetCookieHeaderValue_ParseStrictList_ThrowsForAnyInvalidValues( #pragma warning disable xUnit1026 // Theory methods should use all of their parameters IList <SetCookieHeaderValue> cookies, #pragma warning restore xUnit1026 // Theory methods should use all of their parameters string[] input) { Assert.Throws <FormatException>(() => SetCookieHeaderValue.ParseStrictList(input)); }
public void SetCookieHeaderValue_ParseStrictList_AcceptsValidValues(IList <SetCookieHeaderValue> cookies, string[] input) { var results = SetCookieHeaderValue.ParseStrictList(input); Assert.Equal(cookies, results); }
public void SetCookieHeaderValue_ParseStrictList_ThrowsForAnyInvalidValues(IList <SetCookieHeaderValue> cookies, string[] input) { Assert.Throws <FormatException>(() => SetCookieHeaderValue.ParseStrictList(input)); }