public ReadDocument ( Stream stream ) : TagCompound | ||
stream | Stream | |
리턴 | TagCompound |
public void LoadTest() { // arrange ITagReader target; TagCompound expected; TagCompound actual; expected = this.CreateComplexData(); target = new XmlTagReader(); // act using (Stream stream = File.OpenRead(this.ComplexXmlDataFileName)) { actual = target.ReadDocument(stream); } // assert this.CompareTags(expected, actual); }
public void ReadDocument_can_handle_xml_documents_with_self_closing_tags() { // arrange XmlTagReader target; ITag actual; ITag expected; target = new XmlTagReader(); expected = this.CreateSimpleNesting(); // act using (Stream stream = File.OpenRead(Path.Combine(this.DataPath, "project.xml"))) { actual = target.ReadDocument(stream); } // assert this.CompareTags(expected, actual); }
public void ReadDocument_can_handle_xml_documents_without_whitespace() { // arrange ITagReader target; TagCompound expected; TagCompound actual; expected = this.CreateComplexData(); target = new XmlTagReader(); // act using (Stream stream = File.OpenRead(this.ComplexXmlWithoutWhitespaceDataFileName)) { actual = target.ReadDocument(stream); } // assert this.CompareTags(expected, actual); }