public void Render()
        {
            TestHtmlContainerControl cc = new TestHtmlContainerControl();

            cc.InnerHtml = "mono";
            Assert.AreEqual("<span>mono</span>", cc.Render());
        }
        public void NullProperties()
        {
            TestHtmlContainerControl cc = new TestHtmlContainerControl();

            cc.InnerHtml = null;
            Assert.AreEqual(String.Empty, cc.InnerHtml, "InnerHtml");
            cc.InnerText = null;
            Assert.AreEqual(String.Empty, cc.InnerText, "InnerText");

            Assert.AreEqual(0, cc.Attributes.Count, "Attributes.Count");
        }
Пример #3
0
		public void DefaultProperties ()
		{
			TestHtmlContainerControl cc = new TestHtmlContainerControl ();
			Assert.AreEqual (0, cc.Attributes.Count, "Attributes.Count");

			Assert.AreEqual (String.Empty, cc.InnerHtml, "InnerHtml");
			Assert.AreEqual (String.Empty, cc.InnerText, "InnerText");

			Assert.AreEqual ("span", cc.TagName, "TagName");
			Assert.AreEqual (0, cc.Attributes.Count, "Attributes.Count-2");
		}
        public void DefaultProperties()
        {
            TestHtmlContainerControl cc = new TestHtmlContainerControl();

            Assert.AreEqual(0, cc.Attributes.Count, "Attributes.Count");

            Assert.AreEqual(String.Empty, cc.InnerHtml, "InnerHtml");
            Assert.AreEqual(String.Empty, cc.InnerText, "InnerText");

            Assert.AreEqual("span", cc.TagName, "TagName");
            Assert.AreEqual(0, cc.Attributes.Count, "Attributes.Count-2");
        }
Пример #5
0
		public void Render ()
		{
			TestHtmlContainerControl cc = new TestHtmlContainerControl ();
			cc.InnerHtml = "mono";
			Assert.AreEqual ("<span>mono</span>", cc.Render ());
		}
Пример #6
0
		public void CleanProperties ()
		{
			TestHtmlContainerControl cc = new TestHtmlContainerControl ();
			cc.InnerHtml = "mono";
			Assert.AreEqual ("mono", cc.InnerHtml, "InnerHtml");
			Assert.AreEqual ("mono", cc.InnerText, "InnerText");
			cc.InnerText = "go mono";
			Assert.AreEqual ("go mono", cc.InnerHtml, "InnerHtml");
			Assert.AreEqual ("go mono", cc.InnerText, "InnerText");

			cc.InnerHtml = null;
			Assert.AreEqual (String.Empty, cc.InnerHtml, "InnerHtml");
			cc.InnerText = null;
			Assert.AreEqual (String.Empty, cc.InnerText, "InnerText");

			Assert.AreEqual (0, cc.Attributes.Count, "Attributes.Count");
		}