예제 #1
0
		public void Render_KindNone()
		{
			var renderer = new ElementRenderer();
			var e = new Element("tag", ClosingTagKind.None);

			var result = renderer.Render(e).ToString();

			Assert.Equal("<tag >", result);
		}
예제 #2
0
        public void Render_KindNone()
        {
            var renderer = new ElementRenderer();
            var e        = new Element("tag", ClosingTagKind.None);

            var result = renderer.Render(e).ToString();

            Assert.Equal("<tag >", result);
        }
예제 #3
0
		public void Render_WithAttribute()
		{
			var renderer = new ElementRenderer();
			var e = new Element("tag", ClosingTagKind.Normal);
			e.Attributes.Add(new ElementAttribute("foo", "bar"));

			var result = renderer.Render(e).ToString();

			Assert.Equal("<tag foo=\"bar\"></tag>", result);
		}
예제 #4
0
        public void Render_WithAttribute()
        {
            var renderer = new ElementRenderer();
            var e        = new Element("tag", ClosingTagKind.Normal);

            e.Attributes.Add(new ElementAttribute("foo", "bar"));

            var result = renderer.Render(e).ToString();

            Assert.Equal("<tag foo=\"bar\"></tag>", result);
        }