public void UtilityIndexToXml() { Index index = new Index(); var xml = index.ToXml() as XmlDocument; Assert.IsNotNull(xml); var xmls = xml.InnerXml; Assert.IsTrue(xmls.StartsWith(@"<?xml version=""1.0"" encoding=""utf-16""?><Index", StringComparison.Ordinal)); Assert.IsTrue(xmls.Contains("<Version>" + GetType().Assembly.GetName().Version.ToString(2) + "</Version>")); }
public void UtilityIndexTransform() { Index index = new Index(); string html = index.Transform(); Assert.IsFalse(string.IsNullOrEmpty(html)); }