Пример #1
0
        public void RenderTest()
        {
            PasswordInput target = new PasswordInput();

            Assert.AreEqual("<input type=\"password\" name=\"test\" />",
                            target.Render("test", null));
            Assert.AreEqual("<input type=\"password\" name=\"test\" />",
                            target.Render("test", "test1"));

            target.RenderValue = true;
            Assert.AreEqual("<input type=\"password\" name=\"test\" />",
                            target.Render("test", null));
            Assert.AreEqual("<input type=\"password\" name=\"test\" value=\"test1\" />",
                            target.Render("test", "test1"));
        }