Ejemplo n.º 1
0
        public void RenderValue1()
        {
            TestHtmlInputRadioButton rb = new TestHtmlInputRadioButton();

            rb.ID = "id";
            string attrs = rb.RenderAttributes();

            Assert.IsTrue(attrs.IndexOf("value=\"id\"") >= 0);
            rb.Value = "hola<&";
            attrs    = rb.RenderAttributes();
            Assert.IsTrue(attrs.IndexOf("value=\"hola&lt;&amp;\"") >= 0);
        }
Ejemplo n.º 2
0
        public void RenderAttributes()
        {
            TestHtmlInputRadioButton rb = new TestHtmlInputRadioButton();

            rb.Checked = true;
            rb.Name    = "mono";
            rb.Value   = "value";
            rb.RenderAttributes();
        }
Ejemplo n.º 3
0
		public void RenderValue1 ()
		{
			TestHtmlInputRadioButton rb = new TestHtmlInputRadioButton ();
			rb.ID = "id";
			string attrs = rb.RenderAttributes ();
			Assert.IsTrue (attrs.IndexOf ("value=\"id\"") >= 0);
			rb.Value = "hola<&";
			attrs = rb.RenderAttributes ();
			Assert.IsTrue (attrs.IndexOf ("value=\"hola&lt;&amp;\"") >= 0);
		}
Ejemplo n.º 4
0
		public void RenderAttributes ()
		{
			TestHtmlInputRadioButton rb = new TestHtmlInputRadioButton ();
			rb.Checked = true;
			rb.Name = "mono";
			rb.Value = "value";
			rb.RenderAttributes ();
		}