示例#1
0
        public void Multiple()
        {
            PokerL p = new PokerL();

            Assert.AreEqual(true, p.Items[0].Selected, "MultipleSelect#1");
            Assert.AreEqual(true, p.Items[2].Selected, "MultipleSelect#2");
            string html = p.Render();

            #region origin
            string orig = "<select size=\"4\" multiple=\"multiple\">\n\t<option selected=\"selected\" value=\"A\">A</option>\n\t<option value=\"C\">C</option>\n\t<option selected=\"selected\" value=\"E\">E</option>\n\t<option value=\"F\">F</option>\n\t<option value=\"G\">G</option>\n\t<option value=\"D\">D</option>\n\t<option value=\"B\">B</option>\n\n</select>";
            #endregion
            HtmlDiff.AssertAreEqual(orig, html, "MultipleSelect#3");
        }
示例#2
0
        public void Multiple()
        {
            PokerL p = new PokerL();

            Assert.AreEqual(true, p.Items[0].Selected, "MultipleSelect#1");
            Assert.AreEqual(true, p.Items[2].Selected, "MultipleSelect#2");
            string html = p.Render();

            #region origin
            string orig = @"<select size=""4"" multiple=""multiple"">
					<option selected=""selected"" value=""A"">A</option>
					<option value=""C"">C</option>
					<option selected=""selected"" value=""E"">E</option>
					<option value=""F"">F</option>
					<option value=""G"">G</option>
					<option value=""D"">D</option>
					<option value=""B"">B</option>
					</select>"                    ;
            #endregion
            HtmlDiff.AssertAreEqual(orig, html, "MultipleSelect#3");
        }
示例#3
0
		public void Multiple ()
		{
			PokerL p = new PokerL ();
			Assert.AreEqual (true, p.Items[0].Selected, "MultipleSelect#1");
			Assert.AreEqual (true, p.Items[2].Selected, "MultipleSelect#2");
			string html = p.Render ();
			#region origin
			string orig = "<select size=\"4\" multiple=\"multiple\">\n\t<option selected=\"selected\" value=\"A\">A</option>\n\t<option value=\"C\">C</option>\n\t<option selected=\"selected\" value=\"E\">E</option>\n\t<option value=\"F\">F</option>\n\t<option value=\"G\">G</option>\n\t<option value=\"D\">D</option>\n\t<option value=\"B\">B</option>\n\n</select>";
			#endregion
			HtmlDiff.AssertAreEqual (orig, html, "MultipleSelect#3");
		}
		public void Multiple ()
		{
			PokerL p = new PokerL ();
			Assert.AreEqual (true, p.Items[0].Selected, "MultipleSelect#1");
			Assert.AreEqual (true, p.Items[2].Selected, "MultipleSelect#2");
			string html = p.Render ();
			#region origin
			string orig = @"<select size=""4"" multiple=""multiple"">
					<option selected=""selected"" value=""A"">A</option>
					<option value=""C"">C</option>
					<option selected=""selected"" value=""E"">E</option>
					<option value=""F"">F</option>
					<option value=""G"">G</option>
					<option value=""D"">D</option>
					<option value=""B"">B</option>
					</select>";
			#endregion
			HtmlDiff.AssertAreEqual (orig, html, "MultipleSelect#3");
		}