Beispiel #1
0
        public void Render()
        {
            TestHtmlInputCheckBox c = new TestHtmlInputCheckBox();

            c.ID = "*1*";

            string s = c.Render();

            Assert.IsTrue(s.IndexOf(" type=\"checkbox\"") > 0, "type");

            c.Checked = true;
            s         = c.Render();

            HtmlDiff.AssertAreEqual("<input name=\"*1*\" id=\"*1*\" type=\"checkbox\" checked=\"checked\" />", s, "Render fail");
        }
		public void Render ()
		{
			TestHtmlInputCheckBox c = new TestHtmlInputCheckBox ();

			c.ID = "*1*";
			
			string s = c.Render ();

			Assert.IsTrue (s.IndexOf (" type=\"checkbox\"") > 0, "type");

			c.Checked = true;
			s = c.Render ();

			HtmlDiff.AssertAreEqual ("<input name=\"*1*\" id=\"*1*\" type=\"checkbox\" checked=\"checked\" />", s, "Render fail");
		}