public void WriteWixDocumentSavesDocumentToDiskUsingTextEditorPropertiesWhenConvertTabsToSpacesIsTrue() { textEditorOptions.ConvertTabsToSpaces = true; textEditorOptions.IndentationSize = 4; packageFilesView.Write(document); XmlWriterSettings expectedSettings = new XmlWriterSettings(); expectedSettings.CloseOutput = true; expectedSettings.Indent = true; expectedSettings.IndentChars = " "; expectedSettings.NewLineChars = "\r\n"; expectedSettings.OmitXmlDeclaration = true; XmlWriterSettingsComparison comparison = new XmlWriterSettingsComparison(); Assert.IsTrue(comparison.AreEqual(expectedSettings, xmlTextWriter.XmlWriterSettingsPassedToCreateMethod), comparison.ToString()); }
public void Init() { lhs = new XmlWriterSettings(); rhs = new XmlWriterSettings(); comparison = new XmlWriterSettingsComparison(); }