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