예제 #1
0
        public void GetModelDirective_HostViewDataTypeNameIsMyAppMyModel_ReturnsRazorModelFollowedByMyAppMyModel()
        {
            CreateEmptyViewTemplatePreprocessor();
            mvcHost.ViewDataTypeName = "MyApp.MyModel";

            string modelDirective = emptyViewTemplate.GetModelDirective();

            Assert.AreEqual("@model MyApp.MyModel", modelDirective);
        }