Esempio n. 1
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);
        }
        public void HtmlStringTest()
        {
            var expected = new List <string> {
                "<div", "LabelFor", "EditorFor", "ValidationMessageFor", "</div>"
            };
            var actual = EditControlsForHtmlExtension.HtmlString(new HtmlHelperMock <PassengerView>(), x => x.Name);

            TestHtml.Strings(actual, expected);
        }
        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);
        }
Esempio n. 4
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);
        }