示例#1
0
        public void ExportTextWithBraces()
        {
            m_exporter = new DummyExportRtf(m_fileName, Cache, m_styleSheet);
            m_exporter.CallExportRun("This {is} a (test}.");

            // Verify the contents of the temp file
            m_exporter.CloseOutputFile();
            using (StreamReader file = new StreamReader(m_fileName, Encoding.ASCII))
            {
                string line = file.ReadLine();
                Assert.AreEqual(@"This \{is\} a (test\}.", line);
            }
        }
示例#2
0
		public void ExportTextWithBraces()
		{
			m_exporter = new DummyExportRtf(m_fileName, Cache, m_styleSheet);
			m_exporter.CallExportRun("This {is} a (test}.");

			// Verify the contents of the temp file
			m_exporter.CloseOutputFile();
			using (StreamReader file = new StreamReader(m_fileName, Encoding.ASCII))
			{
				string line = file.ReadLine();
				Assert.AreEqual(@"This \{is\} a (test\}.", line);
			}
		}