public void CanChainMutatingReader() { string xml = "<root>foo</root>"; XmlProcessorReader reader = new XmlProcessorReader(GetReader(xml)); XmlProcessor processor = new MutateMockProcessor(); reader.Processors.Add(processor); string output = ReadToEnd(reader); WriteIfDebugging(output); Assert.AreEqual("<Root>foo</Root>", output); }
public void CanChainMutatingReader() { string xml = "<root>foo</root>"; XmlProcessorReader reader = new XmlProcessorReader(GetReader(xml)); XmlProcessor processor = new MutateMockProcessor(); reader.Processors.Add(processor); string output = ReadToEnd(reader); WriteIfDebugging(output); Assert.AreEqual("<Root>foo</Root>", output); }