Example #1
0
        public void FirstOption_should_prepend_new_option_at_top()
        {
            var tag = new SelectTag();
            tag.Option("a", "1");

            tag.TopOption("_", "0");

            tag.Children[0].Text().ShouldEqual("_");
            tag.Children[1].Text().ShouldEqual("a");
        }
Example #2
0
        public void FirstOption_should_prepend_new_option_at_top()
        {
            var tag = new SelectTag();

            tag.Option("a", "1");

            tag.TopOption("_", "0");

            tag.Children[0].Text().ShouldEqual("_");
            tag.Children[1].Text().ShouldEqual("a");
        }