示例#1
0
        public void AddWwwAuthenticate_ReturnsTheSameHeadersInstance()
        {
            var headers = new Headers();

            Headers result = headers.AddWwwAuthenticate("a");

            result.ShouldBeSameAs(headers);
        }
示例#2
0
        public void AddWwwAuthenticate_AddsValidHeader(string challenge)
        {
            var headers = new Headers();

            headers.AddWwwAuthenticate(challenge);

            headers["WWW-Authenticate"].ShouldBe(challenge);
        }