public void CellSpacingProperties ()
		{
			TestRadioButtonList r = new TestRadioButtonList ();
			r.CellSpacing = 5;
			Assert.AreEqual (5, r.CellSpacing, "setting");

			string s = r.Render ();	
			// FIXME: missing some info to start rendering ?
			Assert.AreEqual (String.Empty, s, "htmloutput");
		}	
Esempio n. 2
0
        public void Render()
        {
            TestRadioButtonList c = new TestRadioButtonList();

            c.Items.Add(new ListItem("text2", "value1"));

            string s = c.Render();

            Assert.IsTrue(s.ToLower().IndexOf(" type=\"radio\"") != -1, "type");
            Assert.IsTrue(s.ToLower().IndexOf("value1") != -1, "value");
            Assert.IsTrue(s.ToLower().IndexOf("text2") != -1, "text");
        }
Esempio n. 3
0
        public void CellSpacingProperties()
        {
            TestRadioButtonList r = new TestRadioButtonList();

            r.CellSpacing = 5;
            Assert.AreEqual(5, r.CellSpacing, "setting");

            string s = r.Render();

#if NET_2_0
            // FIXME: missing some info to start rendering ?
            Assert.AreEqual(String.Empty, s, "htmloutput");
#else
            Assert.IsTrue(s.ToLower().IndexOf("cellspacing=\"5\"") != -1, "htmloutput");
#endif
        }
Esempio n. 4
0
		public void Render ()
		{
			TestRadioButtonList c = new TestRadioButtonList ();

			c.Items.Add (new ListItem ("text2", "value1"));

			string s = c.Render ();

			Assert.IsTrue (s.ToLower ().IndexOf (" type=\"radio\"") !=  -1, "type");
			Assert.IsTrue (s.ToLower ().IndexOf ("value1") !=  -1, "value");
			Assert.IsTrue (s.ToLower ().IndexOf ("text2") !=  -1, "text");
		}
Esempio n. 5
0
		public void CellSpacingProperties ()
		{
			TestRadioButtonList r = new TestRadioButtonList ();
			r.CellSpacing = 5;
			Assert.AreEqual (5, r.CellSpacing, "setting");

			string s = r.Render ();	
#if NET_2_0
			// FIXME: missing some info to start rendering ?
			Assert.AreEqual (String.Empty, s, "htmloutput");
#else
			Assert.IsTrue (s.ToLower ().IndexOf ("cellspacing=\"5\"") !=  -1, "htmloutput");
#endif
		}