todo_wineok(hr==S_OK,"AddNameToNamespace failed with %08x\n",hr);
/* Check the returned structure */
todo_wineok(name1!=NULL,"name1 == NULL\n");
if(name1!=NULL)
{
ok(lstrcmpW(name1->LocalName,name1Text)==0,"LocalName returned by AddNameToNamespace is not as expected (%s)\n",wine_dbgstr_w(name1->LocalName));
ok(name1->LocalName!=name1Text,"LocalName has not been cloned\n");
ok(name1->Space!=NULL,"Space returned by AddNameToNamespace is null\n");
ok(lstrcmpW(name1->Space->Uri,ns1Uri)==0,"URI returned by AddNameToNamespace is not as expected (%s)\n",wine_dbgstr_w(name1->Space->Uri));
ok(lstrcmpW(name1->Space->PreferredPrefix,unPrefix0)==0,"PreferredPrefix returned by AddName is not as expected (%s)\n",wine_dbgstr_w(name1->Space->PreferredPrefix));
ok(name1->Space->Names==NULL,"Names array is not empty\n");
ok(name1->Space->NamesCount==0,"NamesCount is not 0 (value = %d)\n",name1->Space->NamesCount);
ok(name1->Space->Uri!=ns1Uri,"URI has not been cloned\n");
}
/* Test calling AddNamespace with parameters that are too large */
todo_wineok(hr==S_OK,"AddNameToNamespace failed with %08x\n",hr);
/* Check the returned structure */
todo_wineok(name2!=NULL,"name2 == NULL\n");
if(name2!=NULL)
{
ok(lstrcmpW(name2->LocalName,name2Text)==0,"LocalName returned by AddNameToNamespace is not as expected (%s)\n",wine_dbgstr_w(name2->LocalName));
ok(name2->LocalName!=name2Text,"LocalName has not been cloned\n");
ok(name2->Space!=NULL,"Space returned by AddNameToNamespace is null\n");
ok(name2->Space!=ns2,"Space returned by AddNameToNamespace is equal to the namespace returned by AddNamespace\n");
ok(lstrcmpW(name2->Space->Uri,ns2Uri)==0,"URI returned by AddNameToNamespace is not as expected (%s)\n",wine_dbgstr_w(name2->Space->Uri));
ok(lstrcmpW(name2->Space->PreferredPrefix,prefix2)==0,"PreferredPrefix returned by AddNameToNamespace is not as expected (%s)\n",wine_dbgstr_w(name2->Space->PreferredPrefix));
ok(name2->Space->Names==NULL,"Names array is not empty\n");
ok(name2->Space->NamesCount==0,"NamesCount is not 0 (value = %d)\n",name2->Space->NamesCount);
ok(name2->Space->Uri!=ns2Uri,"URI has not been cloned\n");