public static void AssertQuery(Query query)
{
if (!(query is FunctionQuery))
{
XPathNavigator navigator2;
query = Clone(query);
XPathNavigator l = null;
int count = query.Clone().Count;
for (int i = 0; (navigator2 = query.Advance()) != null; i++)
{
if (navigator2.GetType().ToString() == "Microsoft.VisualStudio.Modeling.StoreNavigator")
{
return;
}
if (navigator2.GetType().ToString() == "System.Xml.DataDocumentXPathNavigator")
{
return;
}
if ((l != null) && ((l.NodeType != XPathNodeType.Namespace) || (navigator2.NodeType != XPathNodeType.Namespace)))
{
CompareNodes(l, navigator2);
}
l = navigator2.Clone();
}
}
}