public void Stylesheet_CreatesElement() { var xslt = new XsltFactory(); var stylesheet = xslt.Stylesheet(); Assert.Equal("stylesheet", stylesheet.Name.LocalName); Assert.Contains(stylesheet.Attributes(), a => a.Name == "version" && a.Value == "1.0"); Assert.Contains(stylesheet.Attributes(), a => a.Name == XNamespace.Xmlns + "xsl" && a.Value == XsltElement.XslNamespace.NamespaceName); }
public void Clear() { rootElement = xslt.Stylesheet(); }