public void SomeTest() { var fakeContext = new MockHttpContext(); UsersController controller = new UsersController(); fakeContext.SetFakeControllerContext(controller); controller.Show("abc"); fakeContext.MockResponse.Verify(x => x.Redirect(It.IsAny<string>())); }