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");
		}