Assert.IsTrue(assertion,currentFileName+": Child "+child.GetType()+" ("+child.StartLocation+")"+" must start after previous sibling "+prevNode.GetType()+"("+prevNode.StartLocation+")");
Assert.IsTrue(string.IsNullOrWhiteSpace(text),"Expected whitespace between "+startNode.GetType()+":"+whitespaceStart+" and "+endNode.GetType()+":"+whitespaceEnd
boolassertion=string.IsNullOrWhiteSpace(text);
if(!assertion){
if(startNode.Parent==endNode.Parent)
PrintNode(startNode.Parent);
}
Assert.IsTrue(assertion,"Expected whitespace between "+startNode.GetType()+":"+whitespaceStart+" and "+endNode.GetType()+":"+whitespaceEnd
+", but got '"+text+"' (in "+currentFileName+" parent:"+startNode.Parent.GetType()+")");