我有以下方法:publicvoidSetHttpStatusCode(HttpStatusCodehttpStatusCode){Response.StatusCode=(int)httpStatusCode;}以及以下测试:[TestMethod]publicvoidSetHttpStatusCode_SetsCorrectStatusCode(){//Arrange//AnyurlwillsufficevarmockHttpContext=TestHelpers.MakeHttpContext("");mockHttpContext.SetupSet(x=>x.Response.S