Ejemplo n.º 1
0
        public void Style_AddAttributesToRender_use_FillStyleAttributes()
        {
            StringWriter   sw = new StringWriter();
            HtmlTextWriter tw = new HtmlTextWriter(sw);
            StyleTestClass s  = new StyleTestClass();

            s.AddAttributesToRender(tw);
            tw.RenderBeginTag("span");
            tw.RenderEndTag();
            HtmlDiff.AssertAreEqual("<span style=\"FillStyleAttributes:FillStyleAttributes;\" />", sw.ToString(), "AddAttributesToRender_use_FillStyleAttributes#2");
        }
Ejemplo n.º 2
0
        public void Render()
        {
            HtmlTextWriter writer;
            StyleTestClass s;

            writer = StyleTest.GetWriter();
            s      = new StyleTestClass();

            s.BorderColor = Color.BlueViolet;
            s.AddAttributesToRender(writer);
            // Figure out an order-independent way to verify rendered results
        }
Ejemplo n.º 3
0
		public void Render ()
		{
			HtmlTextWriter	writer;
			StyleTestClass	s;

			writer = StyleTest.GetWriter();
			s  = new StyleTestClass ();

			s.BorderColor = Color.BlueViolet;
			s.AddAttributesToRender(writer);
			// Figure out an order-independent way to verify rendered results
		}
Ejemplo n.º 4
0
		public void Style_AddAttributesToRender_use_FillStyleAttributes () {
			StringWriter sw = new StringWriter ();
			HtmlTextWriter tw = new HtmlTextWriter (sw);
			StyleTestClass s = new StyleTestClass ();
			s.AddAttributesToRender (tw);
			tw.RenderBeginTag ("span");
			tw.RenderEndTag ();

			string origHtml = "<span style=\"FillStyleAttributes:FillStyleAttributes;\"></span>";
			string renderedHtml = sw.ToString ();
			HtmlDiff.AssertAreEqual (origHtml, renderedHtml, "AddAttributesToRender_use_FillStyleAttributes#2");
		}