Document must be initially empty

This commit is contained in:
Dmitry-Me 2015-04-06 18:20:25 +03:00
parent 51b33321be
commit 48b5df0b9b
1 changed files with 3 additions and 0 deletions

View File

@ -1167,6 +1167,9 @@ int main( int argc, const char ** argv )
{
XMLDocument doc;
XMLTest( "Document is initially empty", doc.NoChildren(), true );
doc.Clear();
XMLTest( "Empty is empty after Clear()", doc.NoChildren(), true );
doc.LoadFile( "resources/dream.xml" );
XMLTest( "Document has something to Clear()", doc.NoChildren(), false );
doc.Clear();