public void CreateViewContext_ContextShouldBeValid() { var viewMock = new Mock <IView>(); var controller = new TestController(); var viewCtx = _ctx.CreateViewContext(controller, viewMock.Object); Assert.IsNotNull(viewCtx); Assert.AreSame(controller, viewCtx.Controller); Assert.AreSame(_ctx, viewCtx.HttpContext); }