使用最小起订量看起来像这样:var request = new Mock<HttpRequestBase>();request.Expect(r => r.HttpMethod).Returns("GET");var mockHttpContext = new Mock<HttpContextBase>();mockHttpContext.Expect(c => c.Request).Returns(request.Object);var controllerContext = new ControllerContext(mockHttpContext.Object, new RouteData(), new Mock<ControllerBase>().Object);我认为Rhino Mocks的语法相似。