public void RenderControlToStringTest() { using (Control control = new Button { ID = "TestButton", Text = "Click me!" }) { const string expected = "<input type=\"submit\" name=\"TestButton\" value=\"Click me!\" id=\"TestButton\" />"; string actual = ControlExtensions.RenderControlToString(control); Assert.AreEqual(expected, actual); } }