예제 #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);
        }
예제 #2
0
        public void RenderAttributes()
        {
            TestHtmlInputRadioButton rb = new TestHtmlInputRadioButton();

            rb.Checked = true;
            rb.Name    = "mono";
            rb.Value   = "value";
            rb.RenderAttributes();
        }
예제 #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);
		}
예제 #4
0
		public void RenderAttributes ()
		{
			TestHtmlInputRadioButton rb = new TestHtmlInputRadioButton ();
			rb.Checked = true;
			rb.Name = "mono";
			rb.Value = "value";
			rb.RenderAttributes ();
		}