Exemplo n.º 1
0
        public void GivenBundleNotFound_WhenProcessRequest_ThenNotFoundResponse()
        {
            bundles.Clear();
            var httpException = Assert.Throws <HttpException>(() => handler.ProcessRequest(null));

            httpException.GetHttpCode().ShouldEqual(404);
            response.VerifySet(r => r.StatusCode = 404);
        }
Exemplo n.º 2
0
 public void GivenBundleNotFound_WhenProcessRequest_ThenNotFoundResponse()
 {
     bundles.Clear();
     handler.ProcessRequest(null);
     response.VerifySet(r => r.StatusCode = 404);
 }