public void CallingBuildShouldRunTheConventionsAsIfItWasAnotherType()
 {
     var model = new ReusingViewModel();
     var helper = MvcMockHelpers.GetHtmlHelper(model);
     var tag = helper.Input(x => x.AnimalId);    
     tag.TagName().ShouldBe("select");
     Console.WriteLine(tag);
 }
Example #2
0
        public void CallingBuildShouldRunTheConventionsAsIfItWasAnotherType()
        {
            var model  = new ReusingViewModel();
            var helper = MvcMockHelpers.GetHtmlHelper(model);
            var tag    = helper.Input(x => x.AnimalId);

            tag.TagName().ShouldBe("select");
            Console.WriteLine(tag);
        }