예제 #1
0
        public void Output_button_when_button_with_content_specified()
        {
            var t = new TwitterBootstrapFormTemplate();

            var result = t.Button(new HtmlString("<strong>asdf</strong>"), null, null, null, null);

            HtmlApprovals.VerifyHtml(result.ToHtmlString());
        }
예제 #2
0
        public void Output_submit_button_when_button_with_content_and_submit_type_specified()
        {
            var t = new TwitterBootstrapFormTemplate();

            var result = t.Button(new HtmlString("<strong>asdf</strong>"), "submit", "id", "value", new HtmlAttributes(@class => "asdf"));

            HtmlApprovals.VerifyHtml(result.ToHtmlString());
        }
예제 #3
0
        public void Output_button_input_when_button_with_no_content_specified()
        {
            var t = new TwitterBootstrapFormTemplate();

            var result = t.Button(null, null, null, "value", null);

            HtmlApprovals.VerifyHtml(result.ToHtmlString());
        }
예제 #4
0
        public void Output_submit_button_when_button_with_content_and_submit_type_specified()
        {
            var t = new TwitterBootstrapFormTemplate();

            var result = t.Button(new HtmlString("<strong>asdf</strong>"), "submit", "id", "value", new HtmlAttributes(@class => "asdf"));

            HtmlApprovals.VerifyHtml(result.ToHtmlString());
        }
예제 #5
0
        public void Output_button_when_button_with_content_specified()
        {
            var t = new TwitterBootstrapFormTemplate();

            var result = t.Button(new HtmlString("<strong>asdf</strong>"), null, null, null, null);

            HtmlApprovals.VerifyHtml(result.ToHtmlString());
        }
예제 #6
0
        public void Output_button_input_when_button_with_no_content_specified()
        {
            var t = new TwitterBootstrapFormTemplate();

            var result = t.Button(null, null, null, "value", null);

            HtmlApprovals.VerifyHtml(result.ToHtmlString());
        }
예제 #7
0
        public void Output_submit_button_with_non_default_style_or_size()
        {
            var t = new TwitterBootstrapFormTemplate();

            var result = new ButtonHtmlAttributes(h => t.Button(new HtmlString("content"), "submit", null, null, h))
                         .WithStyle(EmphasisStyle.Danger).WithSize(ButtonSize.Large).WithIcon("star");

            HtmlApprovals.VerifyHtml(result.ToHtmlString());
        }
예제 #8
0
        public void Output_submit_button_with_non_default_style_or_size()
        {
            var t = new TwitterBootstrapFormTemplate();

            var result = new ButtonHtmlAttributes(h => t.Button(new HtmlString("content"), "submit", null, null, h))
                .WithStyle(EmphasisStyle.Danger).WithSize(ButtonSize.Large).WithIcon("star");

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