Exemplo n.º 1
0
        public void FillStyleAttributes_Css_Null()
        {
            TestTableStyle ts = new TestTableStyle();

            ts.Fill(GetCssCollection(), null);
            // no exception
        }
Exemplo n.º 2
0
        public void FillStyleAttributes_Null_Resolver()
        {
            TestTableStyle ts = new TestTableStyle();

            ts.Fill(null, new TestResolutionService());
            // no exception
        }
Exemplo n.º 3
0
        public void FillStyleAttributes_Empty()
        {
            CssStyleCollection css = GetCssCollection();
            TestTableStyle     ts  = new TestTableStyle();

            ts.Fill(css, new TestResolutionService());
            Assert.AreEqual(0, css.Count, "Count");
        }
Exemplo n.º 4
0
        public void FillStyleAttributes_Css_WithoutResolution()
        {
            CssStyleCollection css = GetCssCollection();
            TestTableStyle     ts  = new TestTableStyle();

            ts.BackImageUrl = "http://www.go-mono.com";
            ts.Fill(css, null);
            Assert.AreEqual(1, css.Count, "Count");
            Assert.AreEqual("http://www.go-mono.com", css["background-image"], "css[string]");
            Assert.AreEqual("http://www.go-mono.com", css[HtmlTextWriterStyle.BackgroundImage], "css[HtmlTextWriterStyle]");
            Assert.AreEqual("background-image:url(http://www.go-mono.com);", css.Value, "css.Value");
        }
Exemplo n.º 5
0
        public void FillStyleAttributes_NotCss()
        {
            CssStyleCollection css = GetCssCollection();
            TestTableStyle     ts  = new TestTableStyle();

            ts.CellPadding     = 1;
            ts.CellSpacing     = 1;
            ts.GridLines       = GridLines.Both;
            ts.HorizontalAlign = HorizontalAlign.Justify;
            ts.Fill(css, new TestResolutionService());
            Assert.AreEqual(0, css.Count, "Count");
        }
Exemplo n.º 6
0
		public void FillStyleAttributes_Css_WithResolution ()
		{
			CssStyleCollection css = GetCssCollection ();
			TestTableStyle ts = new TestTableStyle ();
			ts.BackImageUrl = "http://www.go-mono.com";
			ts.Fill (css, new TestResolutionService ());
			Assert.AreEqual (1, css.Count, "Count");
			Assert.AreEqual ("http://www.mono-project.com", css["background-image"], "css[string]");
			Assert.AreEqual ("http://www.mono-project.com", css[HtmlTextWriterStyle.BackgroundImage], "css[HtmlTextWriterStyle]");
			Assert.AreEqual ("background-image:url(http://www.mono-project.com);", css.Value, "css.Value");
			Assert.AreEqual ("http://www.go-mono.com", ts.BackImageUrl, "BackImageUrl");
		}
Exemplo n.º 7
0
		public void FillStyleAttributes_NotCss ()
		{
			CssStyleCollection css = GetCssCollection ();
			TestTableStyle ts = new TestTableStyle ();
			ts.CellPadding = 1;
			ts.CellSpacing = 1;
			ts.GridLines = GridLines.Both;
			ts.HorizontalAlign = HorizontalAlign.Justify;
			ts.Fill (css, new TestResolutionService ());
			Assert.AreEqual (0, css.Count, "Count");
		}
Exemplo n.º 8
0
		public void FillStyleAttributes_Empty ()
		{
			CssStyleCollection css = GetCssCollection ();
			TestTableStyle ts = new TestTableStyle ();
			ts.Fill (css, new TestResolutionService ());
			Assert.AreEqual (0, css.Count, "Count");
		}
Exemplo n.º 9
0
		public void FillStyleAttributes_Css_Null ()
		{
			TestTableStyle ts = new TestTableStyle ();
			ts.Fill (GetCssCollection (), null);
			// no exception
		}
Exemplo n.º 10
0
		public void FillStyleAttributes_Null_Resolver ()
		{
			TestTableStyle ts = new TestTableStyle ();
			ts.Fill (null, new TestResolutionService ());
			// no exception
		}