Beispiel #1
0
        public void Use_correct_html_for_child_viewmodel_enum_list_field()
        {
            var g = Arrange(m => m.Child.RequiredChildEnum);

            var result = g.GetFieldHtml(ExampleFieldConfiguration.AsRadioList());

            HtmlApprovals.VerifyHtml(result.ToHtmlString());
        }
Beispiel #2
0
        public void Use_correct_html_for_optional_nullable_enum_list_field()
        {
            var g = Arrange(m => m.OptionalNullableEnumList, m => m.OptionalNullableEnumList = new List <TestEnum?> {
                TestEnum.Simplevalue, TestEnum.ValueWithDescriptionAttribute
            });

            var result = g.GetFieldHtml(ExampleFieldConfiguration.AsRadioList());

            HtmlApprovals.VerifyHtml(result.ToHtmlString());
        }