예제 #1
0
        public void GetSelectArguments()
        {
            PokerS p = new PokerS();
            DataSourceSelectArguments arg = p.GetSelectArguments();

            Assert.AreEqual("SortExp", arg.SortExpression, "GetSelectArguments");
        }
예제 #2
0
파일: PanelTest.cs 프로젝트: yonder/mono
        public void RenderEndTag()
        {
            PokerS p    = new PokerS();
            string html = p.RenderEndTag();

            HtmlDiff.AssertAreEqual("<div>\n\n</div>", html, "RenderBeginTag");
        }
예제 #3
0
파일: PanelTest.cs 프로젝트: raj581/Marvin
        public void CreateControlStyle()
        {
            PokerS p = new PokerS();
            Style  s = p.ControlStyle;

            Assert.AreEqual(Color.Red, s.BackColor, "CreateControlStyle#1");
            Assert.AreEqual(Color.Red, s.BorderColor, "CreateControlStyle#2");
            p.ApplyStyle(s);
            string html = p.Render();

            HtmlDiff.AssertAreEqual("<div style=\"background-color:Red;border-color:Red;\"></div>", html, "CreateControlStyle");
        }
예제 #4
0
파일: RepeaterTest.cs 프로젝트: nobled/mono
		public void GetSelectArguments ()
		{
			PokerS p = new PokerS ();
			DataSourceSelectArguments arg = p.GetSelectArguments ();
			Assert.AreEqual ("SortExp", arg.SortExpression, "GetSelectArguments");
		}
예제 #5
0
파일: PanelTest.cs 프로젝트: kumpera/mono
		public void RenderEndTag ()
		{
			PokerS p = new PokerS ();
			string html = p.RenderEndTag ();
			HtmlDiff.AssertAreEqual ("<div>\n\n</div>", html, "RenderBeginTag");
		}
예제 #6
0
파일: PanelTest.cs 프로젝트: kumpera/mono
		public void CreateControlStyle ()
		{
			PokerS p = new PokerS ();
			Style s = p.ControlStyle;
			Assert.AreEqual (Color.Red, s.BackColor, "CreateControlStyle#1");
			Assert.AreEqual (Color.Red, s.BorderColor, "CreateControlStyle#2");
			p.ApplyStyle (s);
			string html = p.Render ();
			string origHtml = "<div style=\"background-color:Red;border-color:Red;\">\n\n</div>";
			HtmlDiff.AssertAreEqual (origHtml, html, "CreateControlStyle");
		}