Пример #1
0
        public void positionTest2()
        {
            Rubik myRubik = new Rubik();


            myRubik.rotateFace(new Rotation(Face.L, Direction.CW));
            Assert.AreEqual(true, myRubik
                            .getPositionOfCubicleOfCubiclePlace(new Location(Face.D, Face.F))
                            .equals(new Position(Face.U, Face.F)), "3");

            Assert.AreEqual(true, myRubik
                            .getPositionOfCubicleOfCubiclePlace(new Location(Face.D, Face.L))
                            .equals(new Position(Face.B, Face.U)), "3");

            myRubik.rotateFace(new Rotation(Face.D, Direction.CW));
            Position yaki = myRubik.getPositionOfCubicleOfCubiclePlace(new Location(Face.D, Face.F));

            Assert.AreEqual(true, myRubik
                            .getPositionOfCubicleOfCubiclePlace(new Location(Face.D, Face.F))
                            .equals(new Position(Face.B, Face.L)), "4");
        }