public void XmlWriterSettingsUsedInCreateMethodIsReturned()
		{
			mockXmlTextWriter.Create("test.xml");
			
			XmlWriterSettings expectedSettings = new XmlWriterSettings();
			expectedSettings.IndentChars = "\t";
			expectedSettings.Indent = true;
			expectedSettings.NewLineChars = "\r\n";
			expectedSettings.OmitXmlDeclaration = true;
			expectedSettings.CloseOutput = true;
			
			XmlWriterSettingsComparison comparison = new XmlWriterSettingsComparison();
			Assert.IsTrue(comparison.AreEqual(expectedSettings, mockXmlTextWriter.XmlWriterSettingsPassedToCreateMethod),
				comparison.ToString());
		}
        public void WriteWixDocumentSavesDocumentToDiskUsingTextEditorProperties()
        {
            packageFilesView.Write(document);

            XmlWriterSettings expectedSettings = new XmlWriterSettings();

            expectedSettings.CloseOutput        = true;
            expectedSettings.Indent             = true;
            expectedSettings.IndentChars        = "\t";
            expectedSettings.NewLineChars       = "\r\n";
            expectedSettings.OmitXmlDeclaration = true;

            XmlWriterSettingsComparison comparison = new XmlWriterSettingsComparison();

            Assert.IsTrue(comparison.AreEqual(expectedSettings, xmlTextWriter.XmlWriterSettingsPassedToCreateMethod),
                          comparison.ToString());
        }
        public void XmlWriterSettingsUsedInCreateMethodIsReturned()
        {
            mockXmlTextWriter.Create("test.xml");

            XmlWriterSettings expectedSettings = new XmlWriterSettings();

            expectedSettings.IndentChars        = "\t";
            expectedSettings.Indent             = true;
            expectedSettings.NewLineChars       = "\r\n";
            expectedSettings.OmitXmlDeclaration = true;
            expectedSettings.CloseOutput        = true;

            XmlWriterSettingsComparison comparison = new XmlWriterSettingsComparison();

            Assert.IsTrue(comparison.AreEqual(expectedSettings, mockXmlTextWriter.XmlWriterSettingsPassedToCreateMethod),
                          comparison.ToString());
        }
 public void Init()
 {
     lhs        = new XmlWriterSettings();
     rhs        = new XmlWriterSettings();
     comparison = new XmlWriterSettingsComparison();
 }