Ver código fonte

Updated test for empty element.


git-svn-id: https://svn.microneil.com/svn/CodeDweller-Tests/trunk@56 b3372362-9eaa-4a85-aa2b-6faa1ab7c995
master
adeniz 9 anos atrás
pai
commit
69e9bf6e83
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4
    0
      TestXMLReader/testXMLReader.cpp

+ 4
- 0
TestXMLReader/testXMLReader.cpp Ver arquivo

@@ -52,14 +52,18 @@ bool result;
bool testEmptyElement() {
std::string stageContent, stage1Content, stage2Content;
std::string elementXml, element1Xml, element2Xml;
CodeDweller::XMLReaderElement reader("elem");
reader
.Element("stage", stageContent)
.RawData(elementXml)
.End("stage")
.Element("stage1", stage1Content)
.RawData(element1Xml)
.End("stage1")
.Element("stage2", stage2Content)
.RawData(element2Xml)
.End("stage2")
.End("elem");

Carregando…
Cancelar
Salvar