Exemplo n.º 1
0
        public void If_Name_is_not_set_it_should_be_get_from_TemplateInfo()
        {
            const string htmlFieldPrefix = "TestPrefix";

            viewContext.ViewData.TemplateInfo.HtmlFieldPrefix = htmlFieldPrefix;

            Assert.DoesNotThrow(() => input.Render());
            Assert.Equal(htmlFieldPrefix, input.Name);
        }