public void numberNodesRotationTree()
        {
            RotationLinkedList l_rotationLinkedList = new RotationLinkedList();
            RotationTree       l_tree = new RotationTree();

            RotationTreeLoader.loadRotationTreeFromStandard(l_tree, l_rotationLinkedList, 4);
            //   int numberOfNodes = l_tree.getNumberOfNodes();
            //   Assert.AreEqual(11205, numberOfNodes);
        }
        public void loadRotationTreeFromFile()
        {
            RotationLinkedList     l_rotationLinkedList = new RotationLinkedList();
            RotationTree           l_tree       = new RotationTree();
            forTestRubikFileReader myTestReader = new forTestRubikFileReader("(5,1) (3,1) (1,0) (3,0) (4,0) (3,0) (4,1) (1,1) \r\n" +
                                                                             "(5,1) (3,1) (1,0) (3,0) (5,0) \r\n");

            RotationTreeLoader.loadRotationTreeFromFile(myTestReader, l_tree);
            Assert.AreEqual(Direction.CCW, l_tree.getRotationLinkedList(1).get(0).getDirection());
        }
        public void writeToFileXLevelsSecondAndThird()
        {
            RotationTreeLoader.findGoodRotationLinks("tstFirstFloor.txt", "tstSecondFloor.txt"
                                                     , "tstThirdFloor.txt", 2);
            RotationTree    firstFloorTree  = new RotationTree();
            RotationTree    secondFloorTree = new RotationTree();
            RotationTree    thirdFloorTree  = new RotationTree();
            RubikFileReader readFirstFloor  = new RubikFileReader("tstFirstFloor.txt");
            RubikFileReader readSecondFloor = new RubikFileReader("tstSecondFloor.txt");
            RubikFileReader readThirdFloor  = new RubikFileReader("tstThirdFloor.txt");

            RotationTreeLoader.loadRotationTreeFromFile(readFirstFloor, firstFloorTree);
            RotationTreeLoader.loadRotationTreeFromFile(readSecondFloor, secondFloorTree);
            RotationTreeLoader.loadRotationTreeFromFile(readThirdFloor, thirdFloorTree);
        }
        public void loadRotationTreeFromStandard()
        {
            RotationLinkedList l_rotationLinkedList = new RotationLinkedList();
            RotationTree       l_tree = new RotationTree();

            RotationTreeLoader.loadRotationTreeFromStandard(l_tree, l_rotationLinkedList, 1);
            int i = -1;

            foreach (Face face in Enum.GetValues(typeof(Face)))
            {
                foreach (Direction direction in Enum.GetValues(typeof(Direction)))
                {
                    i++;
                    int rotationValue = (new Rotation(face, direction)).getValue();
                    Assert.AreEqual(face, l_tree.getRotationLinkedList(i).get(0).getFace());
                    Assert.AreEqual(direction, l_tree.getRotationLinkedList(i).get(0).getDirection());
                }
            }
        }