Beispiel #1
0
        public void FillStyleAttributes_Css_Null()
        {
            TestTableStyle ts = new TestTableStyle();

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

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

            ts.Fill(css, new TestResolutionService());
            Assert.AreEqual(0, css.Count, "Count");
        }
Beispiel #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");
        }
Beispiel #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");
        }
Beispiel #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");
		}
Beispiel #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");
		}
Beispiel #8
0
		public void FillStyleAttributes_Empty ()
		{
			CssStyleCollection css = GetCssCollection ();
			TestTableStyle ts = new TestTableStyle ();
			ts.Fill (css, new TestResolutionService ());
			Assert.AreEqual (0, css.Count, "Count");
		}
Beispiel #9
0
		public void FillStyleAttributes_Css_Null ()
		{
			TestTableStyle ts = new TestTableStyle ();
			ts.Fill (GetCssCollection (), null);
			// no exception
		}
Beispiel #10
0
		public void FillStyleAttributes_Null_Resolver ()
		{
			TestTableStyle ts = new TestTableStyle ();
			ts.Fill (null, new TestResolutionService ());
			// no exception
		}