public static void InitializeCurrentTest() { tree = new MyTree(); tree.AddItem(8); tree.AddItem(25); tree.AddItem(4); tree.AddItem(15); arrayTree = TreeHelper.GetTreeInLine(tree); }
public void AreEquivalent() { MyTree treeTest = new MyTree(); treeTest.AddItem(8); treeTest.AddItem(25); treeTest.AddItem(4); treeTest.AddItem(15); var arrayTreeTest = TreeHelper.GetTreeInLine(tree); CollectionAssert.AreEquivalent(arrayTree, arrayTreeTest); }