コード例 #1
0
 public void GivenBundleNotFound_WhenProcessRequest_ThenNotFoundResponse()
 {
     bundleContainer.Setup(c => c.FindBundlesContainingPath(It.IsAny <string>()))
     .Returns(() => new Bundle[0]);
     handler.ProcessRequest(null);
     response.VerifySet(r => r.StatusCode = 404);
 }
コード例 #2
0
 public void GivenBundleIsNull_WhenProcessRequest_ThenNotFoundResponse()
 {
     handler.ProcessRequest(null);
     response.VerifySet(r => r.StatusCode = 404);
 }
コード例 #3
0
 public void GivenBundleNotFound_WhenProcessRequest_ThenNotFoundResponse()
 {
     bundles.Clear();
     handler.ProcessRequest(null);
     response.VerifySet(r => r.StatusCode = 404);
 }