private void AssertParsedContent(string resource)
        {
            var testSubjectPair = LoadFromResource(resource);

            var testSubject = new TestSubject(testSubjectPair.EncodedScript);
            Assert.AreEqual(testSubjectPair.XmlDocument.ToString(), ParsedContents(testSubject, resource));
        }
 private static string ParsedContents(TestSubject subject, string resource)
 {
     var contents = subject.Repository[resource + ".xml"];
     return new StreamReader(contents).ReadToEnd();
 }