public void RenderAttributes()
        {
            TestHtmlInputControl ic = new TestHtmlInputControl("test");

            ic.Name  = "mono";
            ic.Value = "value";

            HtmlDiff.AssertAreEqual("<dummy name type=\"test\" value=\"value\" />", ic.RenderAttributes(), "RenderAttributes failed #1");

            ic.ID = "toto";
            HtmlDiff.AssertAreEqual("<dummy name=\"toto\" id=\"toto\" type=\"test\" value=\"value\" />", ic.RenderAttributes(), "RenderAttributes failed #2");
        }
        public void Password()
        {
            TestHtmlInputControl ic = new TestHtmlInputControl("password");

            ic.Name  = "mono";
            ic.Value = "s3kr3t";

            // logic to hide password isn't in HtmlInputControl
            HtmlDiff.AssertAreEqual("<dummy name type=\"password\" value=\"s3kr3t\" />", ic.RenderAttributes(), "Password failed");
        }
示例#3
0
		public void Password ()
		{
			TestHtmlInputControl ic = new TestHtmlInputControl ("password");
			ic.Name = "mono";
			ic.Value = "s3kr3t";

			// logic to hide password isn't in HtmlInputControl
			HtmlDiff.AssertAreEqual ("<dummy name type=\"password\" value=\"s3kr3t\" />", ic.RenderAttributes (), "Password failed");
		}
示例#4
0
		public void RenderAttributes ()
		{
			TestHtmlInputControl ic = new TestHtmlInputControl ("test");
			ic.Name = "mono";
			ic.Value = "value";

			HtmlDiff.AssertAreEqual ("<dummy name type=\"test\" value=\"value\" />", ic.RenderAttributes (), "RenderAttributes failed #1");

			ic.ID = "toto";
			HtmlDiff.AssertAreEqual ("<dummy name=\"toto\" id=\"toto\" type=\"test\" value=\"value\" />", ic.RenderAttributes (), "RenderAttributes failed #2");
		}