public void CountSortNodes_Should_Sort_List_Of_Nodes_From_A_To_z() { var nodeA = new Node('A', 1); var nodea = new Node('a', 1); var nodeB = new Node('B', 1); var nodeb = new Node('b', 1); var nodeC = new Node('C', 1); var listToSort = new List <INode>() { nodeA, nodea, nodeB, nodeb, nodeC }; var expectedResult = new List <INode>() { nodeA, nodeB, nodeC, nodea, nodeb }; HelperExtensions.CountSortNodes(listToSort).Should().BeEquivalentTo(expectedResult); }
public List <INode> GetLeafsSortedA2z() { return(HelperExtensions.CountSortNodes(GetLeafs())); }