Ejemplo n.º 1
0
        public void AddWwwAuthenticate_Throws_WhenHeadersNull()
        {
            Action action = () => HeadersExtensions.AddWwwAuthenticate(null, "Bearer");

            action.ShouldThrow <ArgumentNullException>()
            .ParamName.ShouldBe("headers");
        }
Ejemplo n.º 2
0
        public void AddLocation_Throws_WhenHeadersIsNull()
        {
            Action action = () => HeadersExtensions.AddLocation(null, new Uri("http://addr.io"));

            action.ShouldThrow <ArgumentNullException>()
            .ParamName.ShouldBe("headers");
        }