This library provides XML extensions for fluent unit testing of ASP.NET MVC Controllers.
[Test]
public void ShouldRespondWithXml()
{
var controller = new CallController();
controller
.WithCallTo(c => c.Connect("555-5555"))
.ShouldReturnXmlResult(data =>
{
StringAssert.Contains(
"Thanks for contacting us", data.XPathSelectElement("Response/Say").Value);
Assert.That(data.XPathSelectElement("Response/Dial").Value, Is.EqualTo("555-5555"));
});
}