This more the level of complexity I like in my tests:
[Test]
def load_snippet1():
sn = Snippet()
xml_string = """
<snippet>
Boogie!
</snippet>
"""
#
# this will get passed an XmlReader in the normal course
# of things...
#
using xr = XmlReader.Create(StringReader(xml_string)):
xr.MoveToContent()
sn.load(xr)
Assert.AreEqual("Boogie!", sn.text)
Assert.IsFalse(sn.cut)
And that passes. But I still need a Narrative level test to make sure the narrative is processing its internal elements correctly
No comments:
Post a Comment