Пример #1
0
    public void CookieHeaderValue_ParseStrictList_ThrowsForAnyInvalidValues(
#pragma warning disable xUnit1026 // Theory methods should use all of their parameters
        IList <CookieHeaderValue> cookies,
#pragma warning restore xUnit1026 // Theory methods should use all of their parameters
        string[] input)
    {
        Assert.Throws <FormatException>(() => CookieHeaderValue.ParseStrictList(input));
    }
Пример #2
0
    public void CookieHeaderValue_ParseStrictList_AcceptsValidValues(IList <CookieHeaderValue> cookies, string[] input)
    {
        var results = CookieHeaderValue.ParseStrictList(input);

        Assert.Equal(cookies, results);
    }