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