コード例 #1
0
        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));
        }
コード例 #2
0
        public void SetCookieHeaderValue_ParseStrictList_AcceptsValidValues(IList <SetCookieHeaderValue> cookies, string[] input)
        {
            var results = SetCookieHeaderValue.ParseStrictList(input);

            Assert.Equal(cookies, results);
        }