コード例 #1
0
        public void a_foreach_and_current_in_same_scope_produces_the_expected_html_tree()
        {
            var list = new List<string> {"one", "two"};

            var element = new OneDivPerItemWithID(list);
            element.Prepare();
            element.OuterXml.ShouldBe("<div id=\"one\"></div><div id=\"two\"></div>");
        }
コード例 #2
0
        public void a_foreach_and_current_in_same_scope_produces_the_expected_html_tree()
        {
            var list = new List <string> {
                "one", "two"
            };

            var element = new OneDivPerItemWithID(list);

            element.Prepare();
            element.OuterXml.ShouldBe("<div id=\"one\"></div><div id=\"two\"></div>");
        }