Ejemplo n.º 1
0
        public void SetCookieHeaderValue_TryParseStrictList_AcceptsValidValues(IList <SetCookieHeaderValue> cookies, string[] input)
        {
            bool result = SetCookieHeaderValue.TryParseStrictList(input, out var results);

            Assert.True(result);

            Assert.Equal(cookies, results);
        }
Ejemplo n.º 2
0
        public void SetCookieHeaderValue_TryParseStrictList_FailsForAnyInvalidValues(
#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)
        {
            bool result = SetCookieHeaderValue.TryParseStrictList(input, out var results);

            Assert.Null(results);
            Assert.False(result);
        }