public void NoIndentationFoo() { string reqXml = @"<?xml version=""1.0"" ?> <methodCall> <methodName>Foo</methodName> <params> <param> <value><string>1234</string></value> </param> </params> </methodCall>"; Stream reqStm = new MemoryStream(ASCIIEncoding.Default.GetBytes(reqXml)); XmlRpcServerProtocol svrProt = new NoIndentationService(); Stream respStm = svrProt.Invoke(reqStm); StreamReader rdr = new StreamReader(respStm); string response = rdr.ReadToEnd(); string respXml = @"<?xml version=""1.0""?><methodResponse><params><param><value><string>1234</string></value></param></params></methodResponse>"; Assert.AreEqual(respXml, response); }