コード例 #1
0
        public void Controls_Table_Dual()
        {
#if NET_4_0
            string origHtml1 = "<tr>\n\t<td>mono</td>\n</tr>";
            string origHtml2 = "<tr>\n\t<td>mono</td>\n</tr>";
            string origHtml3 = "<table>\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table><table>\n\t<tr>\n\t\t<td>monkey</td>\n\t</tr>\n</table>";
            string origHtml4 = "<span><table>\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table><table>\n\t<tr>\n\t\t<td>monkey</td>\n\t</tr>\n</table></span>";
#else
            string origHtml1 = "<tr>\n\t<td>mono</td>\n</tr>";
            string origHtml2 = "<tr>\n\t<td>mono</td>\n</tr>";
            string origHtml3 = "<table border=\"0\">\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table><table border=\"0\">\n\t<tr>\n\t\t<td>monkey</td>\n\t</tr>\n</table>";
            string origHtml4 = "<span><table border=\"0\">\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table><table border=\"0\">\n\t<tr>\n\t\t<td>monkey</td>\n\t</tr>\n</table></span>";
#endif
            TestDataListItem dli = new TestDataListItem(0, ListItemType.Item);
            dli.Controls.Add(GetTable("mono"));
            dli.Controls.Add(GetTable("monkey"));

            // the second table is ignored if extractRows is true
            string renderedHtml = dli.Render(true, true);
            Assert.AreEqual(origHtml1, renderedHtml, "Render-Empty-T-T");

            renderedHtml = dli.Render(true, false);
            Assert.AreEqual(origHtml2, renderedHtml, "Render-Empty-T-F");

            // but not if extractRows is false
            renderedHtml = dli.Render(false, true);
            Assert.AreEqual(Adjust(origHtml3), Adjust(renderedHtml), "Render-Empty-F-T");

            renderedHtml = dli.Render(false, false);
            Assert.AreEqual(Adjust(origHtml4), Adjust(renderedHtml), "Render-Empty-F-F");
        }
コード例 #2
0
        private void DataItemContainer(TestDataListItem dli, int index)
        {
            IDataItemContainer dic = (dli as IDataItemContainer);

            Assert.IsNull(dic.DataItem, "IDataItemContainer-DataItem");
            Assert.AreEqual(index, dic.DataItemIndex, "IDataItemContainer-DataItemIndex");
            Assert.AreEqual(index, dic.DisplayIndex, "IDataItemContainer-DisplayIndex");
        }
コード例 #3
0
        public void Bad_ListItemType()
        {
            TestDataListItem dli = new TestDataListItem(0, (ListItemType)Int32.MinValue);

            Assert.AreEqual(0, dli.ItemIndex, "ItemIndex");
            Assert.AreEqual((ListItemType)Int32.MinValue, dli.ItemType, "ItemType");

            DataItemContainer(dli, 0);
            BaseTests(dli);
        }
コード例 #4
0
ファイル: DataListItemTest.cs プロジェクト: raj581/Marvin
        public void Controls_Table()
        {
            TestDataListItem dli = new TestDataListItem(0, ListItemType.Item);

            dli.Controls.Add(GetTable("mono"));

            Assert.AreEqual("<tr>\n\t<td>mono</td>\n</tr>", dli.Render(true, true), "Render-Empty-T-T");
            Assert.AreEqual("<tr>\n\t<td>mono</td>\n</tr>", dli.Render(true, false), "Render-Empty-T-F");
            Assert.AreEqual(Adjust("<table border=\"0\">\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table>"), Adjust(dli.Render(false, true)), "Render-Empty-F-T");
            Assert.AreEqual(Adjust("<span><table border=\"0\">\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table></span>"), Adjust(dli.Render(false, false)), "Render-Empty-F-F");
        }
コード例 #5
0
        public void AlternatingItem()
        {
            TestDataListItem dli = new TestDataListItem(0, ListItemType.AlternatingItem);

            Assert.AreEqual(0, dli.ItemIndex, "ItemIndex");
            Assert.AreEqual(ListItemType.AlternatingItem, dli.ItemType, "ItemType");

            DataItemContainer(dli, 0);
            BaseTests(dli);

            dli.SetType(ListItemType.EditItem);
            Assert.AreEqual(ListItemType.EditItem, dli.ItemType, "SetItemType");
        }
コード例 #6
0
        public void Footer()
        {
            TestDataListItem dli = new TestDataListItem(Int32.MinValue, ListItemType.Footer);

            Assert.AreEqual(Int32.MinValue, dli.ItemIndex, "ItemIndex");
            Assert.AreEqual(ListItemType.Footer, dli.ItemType, "ItemType");

            DataItemContainer(dli, Int32.MinValue);
            BaseTests(dli);

            dli.SetType(ListItemType.Header);
            Assert.AreEqual(ListItemType.Header, dli.ItemType, "SetItemType");
        }
コード例 #7
0
        public void Pager()
        {
            TestDataListItem dli = new TestDataListItem(0, ListItemType.Pager);

            Assert.AreEqual(0, dli.ItemIndex, "ItemIndex");
            Assert.AreEqual(ListItemType.Pager, dli.ItemType, "ItemType");

            DataItemContainer(dli, 0);
            BaseTests(dli);

            dli.SetType(ListItemType.SelectedItem);
            Assert.AreEqual(ListItemType.SelectedItem, dli.ItemType, "SetItemType");
        }
コード例 #8
0
        public void SelectedItem()
        {
            TestDataListItem dli = new TestDataListItem(1, ListItemType.SelectedItem);

            Assert.AreEqual(1, dli.ItemIndex, "ItemIndex");
            Assert.AreEqual(ListItemType.SelectedItem, dli.ItemType, "ItemType");

            DataItemContainer(dli, 1);
            BaseTests(dli);

            dli.SetType(ListItemType.Separator);
            Assert.AreEqual(ListItemType.Separator, dli.ItemType, "SetItemType");
        }
コード例 #9
0
        public void Separator()
        {
            TestDataListItem dli = new TestDataListItem(-1, ListItemType.Separator);

            Assert.AreEqual(-1, dli.ItemIndex, "ItemIndex");
            Assert.AreEqual(ListItemType.Separator, dli.ItemType, "ItemType");

            DataItemContainer(dli, -1);
            BaseTests(dli);

            dli.SetType(ListItemType.AlternatingItem);
            Assert.AreEqual(ListItemType.AlternatingItem, dli.ItemType, "SetItemType");
        }
コード例 #10
0
        public void SupportsDisabledAttribute()
        {
            var ver40 = new Version(4, 0);
            var ver35 = new Version(3, 5);
            var p     = new TestDataListItem(0, ListItemType.Item);

            Assert.AreEqual(ver40, p.RenderingCompatibility, "#A1-1");
            Assert.IsFalse(p.SupportsDisabledAttribute, "#A1-2");

            p.RenderingCompatibility = new Version(3, 5);
            Assert.AreEqual(ver35, p.RenderingCompatibility, "#A2-1");
            Assert.IsTrue(p.SupportsDisabledAttribute, "#A2-2");
        }
コード例 #11
0
        public void Controls_LiteralControl()
        {
            TestDataListItem dli = new TestDataListItem(0, ListItemType.Item);
            LiteralControl   lc  = new LiteralControl("mono");

            dli.Controls.Add(lc);

            // there's no table here (but there are controls), so calling Render with true for
            // extractRows cause a NullReferenceException on MS implementation
            //Assert.AreEqual ("<tr>\n\t<td></td>\n<\tr>", dli.Render (true, true), "Render-Empty-T-T");
            //Assert.AreEqual ("<tr>\n\t<td></td>\n<\tr>", dli.Render (true, false), "Render-Empty-T-F");
            Assert.AreEqual("mono", dli.Render(false, true), "Render-Empty-F-T");
            Assert.AreEqual("<span>mono</span>", dli.Render(false, false), "Render-Empty-F-F");
        }
コード例 #12
0
ファイル: DataListItemTest.cs プロジェクト: raj581/Marvin
        public void Controls_Table_Dual()
        {
            TestDataListItem dli = new TestDataListItem(0, ListItemType.Item);

            dli.Controls.Add(GetTable("mono"));
            dli.Controls.Add(GetTable("monkey"));

            // the second table is ignored if extractRows is true
            Assert.AreEqual("<tr>\n\t<td>mono</td>\n</tr>", dli.Render(true, true), "Render-Empty-T-T");
            Assert.AreEqual("<tr>\n\t<td>mono</td>\n</tr>", dli.Render(true, false), "Render-Empty-T-F");
            // but not if extractRows is false
            Assert.AreEqual(Adjust("<table border=\"0\">\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table><table border=\"0\">\n\t<tr>\n\t\t<td>monkey</td>\n\t</tr>\n</table>"), Adjust(dli.Render(false, true)), "Render-Empty-F-T");
            Assert.AreEqual(Adjust("<span><table border=\"0\">\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table><table border=\"0\">\n\t<tr>\n\t\t<td>monkey</td>\n\t</tr>\n</table></span>"), Adjust(dli.Render(false, false)), "Render-Empty-F-F");
        }
コード例 #13
0
ファイル: DataListItemTest.cs プロジェクト: Profit0004/mono
		private void BaseTests (TestDataListItem dli)
		{
			Assert.IsNull (dli.DataItem, "DataItem");
			Assert.AreEqual (String.Empty, dli.Render (true, true), "Render-Empty-T-T");
			Assert.AreEqual (String.Empty, dli.Render (true, false), "Render-Empty-T-F");
			Assert.AreEqual (String.Empty, dli.Render (false, true), "Render-Empty-F-T");
			Assert.AreEqual ("<span></span>", dli.Render (false, false), "Render-Empty-F-F");

			dli.DataItem = (object)Int32.MaxValue;
			Assert.AreEqual (Int32.MaxValue, dli.DataItem, "DataItem-Int32");
			Assert.AreEqual (String.Empty, dli.Render (true, true), "Render-Int32-T-T");
			Assert.AreEqual (String.Empty, dli.Render (true, false), "Render-Int32-T-F");
			Assert.AreEqual (String.Empty, dli.Render (false, true), "Render-Int32-F-T");
			Assert.AreEqual ("<span></span>", dli.Render (false, false), "Render-Int32-F-F");

			dli.DataItem = (object)"mono";
			Assert.AreEqual ("mono", dli.DataItem, "DataItem-String");
			Assert.AreEqual (String.Empty, dli.Render (true, true), "Render-String-T-T");
			Assert.AreEqual (String.Empty, dli.Render (true, false), "Render-String-T-F");
			Assert.AreEqual (String.Empty, dli.Render (false, true), "Render-String-F-T");
			Assert.AreEqual ("<span></span>", dli.Render (false, false), "Render-String-F-F");
		}
コード例 #14
0
        private void BaseTests(TestDataListItem dli)
        {
            Assert.IsNull(dli.DataItem, "DataItem");
            Assert.AreEqual(String.Empty, dli.Render(true, true), "Render-Empty-T-T");
            Assert.AreEqual(String.Empty, dli.Render(true, false), "Render-Empty-T-F");
            Assert.AreEqual(String.Empty, dli.Render(false, true), "Render-Empty-F-T");
            Assert.AreEqual("<span></span>", dli.Render(false, false), "Render-Empty-F-F");

            dli.DataItem = (object)Int32.MaxValue;
            Assert.AreEqual(Int32.MaxValue, dli.DataItem, "DataItem-Int32");
            Assert.AreEqual(String.Empty, dli.Render(true, true), "Render-Int32-T-T");
            Assert.AreEqual(String.Empty, dli.Render(true, false), "Render-Int32-T-F");
            Assert.AreEqual(String.Empty, dli.Render(false, true), "Render-Int32-F-T");
            Assert.AreEqual("<span></span>", dli.Render(false, false), "Render-Int32-F-F");

            dli.DataItem = (object)"mono";
            Assert.AreEqual("mono", dli.DataItem, "DataItem-String");
            Assert.AreEqual(String.Empty, dli.Render(true, true), "Render-String-T-T");
            Assert.AreEqual(String.Empty, dli.Render(true, false), "Render-String-T-F");
            Assert.AreEqual(String.Empty, dli.Render(false, true), "Render-String-F-T");
            Assert.AreEqual("<span></span>", dli.Render(false, false), "Render-String-F-F");
        }
コード例 #15
0
        public void Controls_Table()
        {
            string           origHtml1 = "<tr>\n\t<td>mono</td>\n</tr>";
            string           origHtml2 = "<tr>\n\t<td>mono</td>\n</tr>";
            string           origHtml3 = "<table>\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table>";
            string           origHtml4 = "<span><table>\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table></span>";
            TestDataListItem dli       = new TestDataListItem(0, ListItemType.Item);

            dli.Controls.Add(GetTable("mono"));

            string renderedHtml = dli.Render(true, true);

            Assert.AreEqual(origHtml1, renderedHtml, "Render-Empty-T-T");

            renderedHtml = dli.Render(true, false);
            Assert.AreEqual(origHtml2, renderedHtml, "Render-Empty-T-F");

            renderedHtml = dli.Render(false, true);
            Assert.AreEqual(Adjust(origHtml3), Adjust(renderedHtml), "Render-Empty-F-T");

            renderedHtml = dli.Render(false, false);
            Assert.AreEqual(Adjust(origHtml4), Adjust(renderedHtml), "Render-Empty-F-F");
        }
コード例 #16
0
		public void Controls_Table ()
		{
			TestDataListItem dli = new TestDataListItem (0, ListItemType.Item);
			dli.Controls.Add (GetTable ("mono"));

			Assert.AreEqual ("<tr>\n\t<td>mono</td>\n</tr>", dli.Render (true, true), "Render-Empty-T-T");
			Assert.AreEqual ("<tr>\n\t<td>mono</td>\n</tr>", dli.Render (true, false), "Render-Empty-T-F");
			Assert.AreEqual (Adjust ("<table border=\"0\">\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table>"), Adjust (dli.Render (false, true)), "Render-Empty-F-T");
			Assert.AreEqual (Adjust ("<span><table border=\"0\">\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table></span>"), Adjust (dli.Render (false, false)), "Render-Empty-F-F");
		}
コード例 #17
0
ファイル: DataListItemTest.cs プロジェクト: Profit0004/mono
		public void SupportsDisabledAttribute ()
		{
			var ver40 = new Version (4, 0);
			var ver35 = new Version (3, 5);
			var p = new TestDataListItem (0, ListItemType.Item);
			Assert.AreEqual (ver40, p.RenderingCompatibility, "#A1-1");
			Assert.IsFalse (p.SupportsDisabledAttribute, "#A1-2");

			p.RenderingCompatibility = new Version (3, 5);
			Assert.AreEqual (ver35, p.RenderingCompatibility, "#A2-1");
			Assert.IsTrue (p.SupportsDisabledAttribute, "#A2-2");
		}
コード例 #18
0
		public void Controls_Table ()
		{
#if NET_4_0
			string origHtml1 = "<tr>\n\t<td>mono</td>\n</tr>";
			string origHtml2 = "<tr>\n\t<td>mono</td>\n</tr>";
			string origHtml3 = "<table>\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table>";
			string origHtml4 = "<span><table>\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table></span>";
#else
			string origHtml1 = "<tr>\n\t<td>mono</td>\n</tr>";
			string origHtml2 = "<tr>\n\t<td>mono</td>\n</tr>";
			string origHtml3 = "<table border=\"0\">\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table>";
			string origHtml4 = "<span><table border=\"0\">\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table></span>";
#endif
			TestDataListItem dli = new TestDataListItem (0, ListItemType.Item);
			dli.Controls.Add (GetTable ("mono"));

			string renderedHtml = dli.Render (true, true);
			Assert.AreEqual (origHtml1, renderedHtml, "Render-Empty-T-T");

			renderedHtml = dli.Render (true, false);
			Assert.AreEqual (origHtml2, renderedHtml, "Render-Empty-T-F");

			renderedHtml = dli.Render (false, true);
			Assert.AreEqual (Adjust (origHtml3), Adjust (renderedHtml), "Render-Empty-F-T");

			renderedHtml = dli.Render (false, false);
			Assert.AreEqual (Adjust (origHtml4), Adjust (renderedHtml), "Render-Empty-F-F");
		}
コード例 #19
0
		public void Controls_Table_Dual ()
		{
			TestDataListItem dli = new TestDataListItem (0, ListItemType.Item);
			dli.Controls.Add (GetTable ("mono"));
			dli.Controls.Add (GetTable ("monkey"));

			// the second table is ignored if extractRows is true
			Assert.AreEqual ("<tr>\n\t<td>mono</td>\n</tr>", dli.Render (true, true), "Render-Empty-T-T");
			Assert.AreEqual ("<tr>\n\t<td>mono</td>\n</tr>", dli.Render (true, false), "Render-Empty-T-F");
			// but not if extractRows is false
			Assert.AreEqual (Adjust ("<table border=\"0\">\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table><table border=\"0\">\n\t<tr>\n\t\t<td>monkey</td>\n\t</tr>\n</table>"), Adjust (dli.Render (false, true)), "Render-Empty-F-T");
			Assert.AreEqual (Adjust ("<span><table border=\"0\">\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table><table border=\"0\">\n\t<tr>\n\t\t<td>monkey</td>\n\t</tr>\n</table></span>"), Adjust (dli.Render (false, false)), "Render-Empty-F-F");
		}
コード例 #20
0
ファイル: DataListItemTest.cs プロジェクト: Profit0004/mono
		public void Pager ()
		{
			TestDataListItem dli = new TestDataListItem (0, ListItemType.Pager);
			Assert.AreEqual (0, dli.ItemIndex, "ItemIndex");
			Assert.AreEqual (ListItemType.Pager, dli.ItemType, "ItemType");

			DataItemContainer (dli, 0);
			BaseTests (dli);

			dli.SetType (ListItemType.SelectedItem);
			Assert.AreEqual (ListItemType.SelectedItem, dli.ItemType, "SetItemType");
		}
コード例 #21
0
ファイル: DataListItemTest.cs プロジェクト: Profit0004/mono
		public void Footer ()
		{
			TestDataListItem dli = new TestDataListItem (Int32.MinValue, ListItemType.Footer);
			Assert.AreEqual (Int32.MinValue, dli.ItemIndex, "ItemIndex");
			Assert.AreEqual (ListItemType.Footer, dli.ItemType, "ItemType");

			DataItemContainer (dli, Int32.MinValue);
			BaseTests (dli);

			dli.SetType (ListItemType.Header);
			Assert.AreEqual (ListItemType.Header, dli.ItemType, "SetItemType");
		}
コード例 #22
0
ファイル: DataListItemTest.cs プロジェクト: Profit0004/mono
		public void Separator ()
		{
			TestDataListItem dli = new TestDataListItem (-1, ListItemType.Separator);
			Assert.AreEqual (-1, dli.ItemIndex, "ItemIndex");
			Assert.AreEqual (ListItemType.Separator, dli.ItemType, "ItemType");

			DataItemContainer (dli, -1);
			BaseTests (dli);

			dli.SetType (ListItemType.AlternatingItem);
			Assert.AreEqual (ListItemType.AlternatingItem, dli.ItemType, "SetItemType");
		}
コード例 #23
0
ファイル: DataListItemTest.cs プロジェクト: Profit0004/mono
		public void SelectedItem ()
		{
			TestDataListItem dli = new TestDataListItem (1, ListItemType.SelectedItem);
			Assert.AreEqual (1, dli.ItemIndex, "ItemIndex");
			Assert.AreEqual (ListItemType.SelectedItem, dli.ItemType, "ItemType");

			DataItemContainer (dli, 1);
			BaseTests (dli);

			dli.SetType (ListItemType.Separator);
			Assert.AreEqual (ListItemType.Separator, dli.ItemType, "SetItemType");
		}
コード例 #24
0
ファイル: DataListItemTest.cs プロジェクト: Profit0004/mono
		public void Bad_ListItemType ()
		{
			TestDataListItem dli = new TestDataListItem (0, (ListItemType)Int32.MinValue);
			Assert.AreEqual (0, dli.ItemIndex, "ItemIndex");
			Assert.AreEqual ((ListItemType)Int32.MinValue, dli.ItemType, "ItemType");

			DataItemContainer (dli, 0);
			BaseTests (dli);
		}
コード例 #25
0
ファイル: DataListItemTest.cs プロジェクト: Profit0004/mono
		public void Controls_Table_Dual ()
		{
			string origHtml1 = "<tr>\n\t<td>mono</td>\n</tr>";
			string origHtml2 = "<tr>\n\t<td>mono</td>\n</tr>";
			string origHtml3 = "<table>\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table><table>\n\t<tr>\n\t\t<td>monkey</td>\n\t</tr>\n</table>";
			string origHtml4 = "<span><table>\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table><table>\n\t<tr>\n\t\t<td>monkey</td>\n\t</tr>\n</table></span>";
			TestDataListItem dli = new TestDataListItem (0, ListItemType.Item);
			dli.Controls.Add (GetTable ("mono"));
			dli.Controls.Add (GetTable ("monkey"));

			// the second table is ignored if extractRows is true
			string renderedHtml = dli.Render (true, true);
			Assert.AreEqual (origHtml1, renderedHtml, "Render-Empty-T-T");

			renderedHtml = dli.Render (true, false);
			Assert.AreEqual (origHtml2, renderedHtml, "Render-Empty-T-F");

			// but not if extractRows is false
			renderedHtml = dli.Render (false, true);
			Assert.AreEqual (Adjust (origHtml3), Adjust (renderedHtml), "Render-Empty-F-T");

			renderedHtml = dli.Render (false, false);
			Assert.AreEqual (Adjust (origHtml4), Adjust (renderedHtml), "Render-Empty-F-F");
		}
コード例 #26
0
ファイル: DataListItemTest.cs プロジェクト: Profit0004/mono
		public void AlternatingItem ()
		{
			TestDataListItem dli = new TestDataListItem (0, ListItemType.AlternatingItem);
			Assert.AreEqual (0, dli.ItemIndex, "ItemIndex");
			Assert.AreEqual (ListItemType.AlternatingItem, dli.ItemType, "ItemType");

			DataItemContainer (dli, 0);
			BaseTests (dli);

			dli.SetType (ListItemType.EditItem);
			Assert.AreEqual (ListItemType.EditItem, dli.ItemType, "SetItemType");
		}
コード例 #27
0
ファイル: DataListItemTest.cs プロジェクト: Profit0004/mono
		private void DataItemContainer (TestDataListItem dli, int index)
		{
			IDataItemContainer dic = (dli as IDataItemContainer);
			Assert.IsNull (dic.DataItem, "IDataItemContainer-DataItem");
			Assert.AreEqual (index, dic.DataItemIndex, "IDataItemContainer-DataItemIndex");
			Assert.AreEqual (index, dic.DisplayIndex, "IDataItemContainer-DisplayIndex");
		}
コード例 #28
0
ファイル: DataListItemTest.cs プロジェクト: Profit0004/mono
		public void Controls_LiteralControl ()
		{
			TestDataListItem dli = new TestDataListItem (0, ListItemType.Item);
			LiteralControl lc = new LiteralControl ("mono");
			dli.Controls.Add (lc);

			// there's no table here (but there are controls), so calling Render with true for 
			// extractRows cause a NullReferenceException on MS implementation
			//Assert.AreEqual ("<tr>\n\t<td></td>\n<\tr>", dli.Render (true, true), "Render-Empty-T-T");
			//Assert.AreEqual ("<tr>\n\t<td></td>\n<\tr>", dli.Render (true, false), "Render-Empty-T-F");
			Assert.AreEqual ("mono", dli.Render (false, true), "Render-Empty-F-T");
			Assert.AreEqual ("<span>mono</span>", dli.Render (false, false), "Render-Empty-F-F");
		}