Пример #1
0
		public void Defaults ()
		{
			HtmlInputSubmitPoker p = new HtmlInputSubmitPoker ();

			Assert.IsTrue (p.CausesValidation, "A1");
			Assert.AreEqual ("", p.ValidationGroup, "A2");
		}
Пример #2
0
        public void Defaults()
        {
            HtmlInputSubmitPoker p = new HtmlInputSubmitPoker();

            Assert.IsTrue(p.CausesValidation, "A1");
            Assert.AreEqual("", p.ValidationGroup, "A2");
        }
Пример #3
0
        public void RenderAttributes()
        {
            StringWriter   sw = new StringWriter();
            HtmlTextWriter tw = new HtmlTextWriter(sw);

            HtmlInputSubmitPoker p = new HtmlInputSubmitPoker();

            Assert.AreEqual(p.Attributes.Count, 1, "A1");

            p.DoRenderAttributes(tw);
            Assert.AreEqual(sw.ToString(), " name type=\"submit\" /", "A2");
        }
Пример #4
0
		public void CleanProperties ()
		{
			HtmlInputSubmitPoker p = new HtmlInputSubmitPoker ();

			p.CausesValidation = false;
			Assert.IsFalse (p.CausesValidation, "A1");

			p.CausesValidation = true;
			Assert.IsTrue (p.CausesValidation, "A2");

			p.CausesValidation = false;
			Assert.IsFalse (p.CausesValidation, "A3");

			p.ValidationGroup = "hi";
			Assert.AreEqual ("hi", p.ValidationGroup, "A4");

			p.ValidationGroup = "";
			Assert.AreEqual ("", p.ValidationGroup, "A4");
		}
Пример #5
0
        public void CleanProperties()
        {
            HtmlInputSubmitPoker p = new HtmlInputSubmitPoker();

            p.CausesValidation = false;
            Assert.IsFalse(p.CausesValidation, "A1");

            p.CausesValidation = true;
            Assert.IsTrue(p.CausesValidation, "A2");

            p.CausesValidation = false;
            Assert.IsFalse(p.CausesValidation, "A3");

            p.ValidationGroup = "hi";
            Assert.AreEqual("hi", p.ValidationGroup, "A4");

            p.ValidationGroup = "";
            Assert.AreEqual("", p.ValidationGroup, "A4");
        }
Пример #6
0
		public void RenderAttributes ()
		{
			StringWriter sw = new StringWriter ();
			HtmlTextWriter tw = new HtmlTextWriter (sw);

			HtmlInputSubmitPoker p = new HtmlInputSubmitPoker ();

			Assert.AreEqual (p.Attributes.Count, 1, "A1");

			p.DoRenderAttributes (tw);
			Assert.AreEqual (sw.ToString (), " name type=\"submit\" /", "A2");
		}