Exemplo n.º 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());
        }
Exemplo n.º 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());
        }
Exemplo n.º 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());
        }
Exemplo n.º 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());
        }
Exemplo n.º 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());
        }
Exemplo n.º 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());
        }
Exemplo n.º 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());
        }
Exemplo n.º 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());
        }