public void CSSStyleDeclarationBoundOutboundDirectionIndirect() { var element = new HTMLElement(); var text = "background: red; color: black"; element.SetAttribute("style", text); Assert.AreEqual(text, element.Style.CssText); Assert.AreEqual(2, element.Style.Length); }
public void CSSStyleDeclarationBoundOutboundDirectionDirect() { var element = new HTMLElement(); var text = "background: red; color: black"; element.SetAttribute("style", String.Empty); Assert.AreEqual(String.Empty, element.Style.CssText); element.Attributes["style"].Value = text; Assert.AreEqual(text, element.Style.CssText); Assert.AreEqual(2, element.Style.Length); }