public void HtmlStringsTest()
        {
            var expected = new List <string> {
                "<div", "LabelFor", "EditorFor", "ValidationMessageFor", "</div>"
            };
            var actual = EditControlsForHtmlExtension.htmlStrings(new htmlHelperMock <MeasureView>(), x => x.ValidFrom);

            TestHtml.Strings(actual, expected);
        }
Ejemplo n.º 2
0
        public void HtmlStringsForTest()
        {
            var expected = new List <string> {
                "<div class=\"form-group\">", "LabelFor", "EditorFor", "ValidationFor", "</div"
            };
            var actual = EditControlsForHtmlExtension.htmlStrings(new htmlHelperMock <MeasureView>(), x => x.ValidFrom);

            TestHtml.Strings(expected, actual);
        }
Ejemplo n.º 3
0
        public void HtmlStringsTest()
        {
            var expected = new List <string> {
                "<div", "LabelFor", "EditorFor", "ValidationMessageFor", "</div>"
            };
            var actual = EditControlsForHtmlExtension.htmlStrings(new HtmlHelperMock <PeriodView>(), x => x.ReadyForCollection);

            TestHtml.Strings(actual, expected);
        }