public void AssertMatch(TreeNode hierarchyNode)
{
List<TreeNodeToken> actual = getActual(hierarchyNode);
try
{
Assert.AreEqual(_tokens.Count, actual.Count, "the count");
actual.ShouldHaveTheSameElementsAs((IList) _tokens);
}
catch (Exception)
{
actual.ForEach(x => Debug.WriteLine(x));
throw;
}
}