Add unit test for XMLDocument::Clear().

This commit is contained in:
Martinsh Shaiters 2013-01-30 11:21:36 +02:00
parent a9d42b0dd3
commit 53ab79afad
1 changed files with 7 additions and 0 deletions

View File

@ -1072,6 +1072,13 @@ int main( int argc, const char ** argv )
XMLTest( "Set length of incoming data", doc.Error(), false );
}
{
XMLDocument doc;
doc.LoadFile( "resources/dream.xml" );
doc.Clear();
XMLTest( "Document Clear()'s", doc.NoChildren(), true );
}
// ----------- Whitespace ------------
{
const char* xml = "<element>"