public void CanRetrieveContentOfFakeTempFile_WhenFolderContainsAmpersand_ViaJavaScript()
{
var dom = SetupDomWithAmpersandInTitle();
// the 'true' parameter simulates calling EnhancedImageServer via JavaScript
var transaction = CreateServerMakeSimPageMakeReply(dom, true);
// Verify
// Whitespace inserted by CreateHtml5StringFromXml seems to vary across versions and platforms.
// I would rather verify the actual output, but don't want this test to be fragile, and the
// main point is that we get a file with the DOM content.
Assert.That(transaction.ReplyContents,
Is.EqualTo(TempFileUtils.CreateHtml5StringFromXml(dom.RawDom)));
}