Пример #1
0
        public void testIsDifferentItemsOnlyInSecondFloorLessThanThree_partI()
        {
            Permutation myPermutation = new Permutation();
            Rubik       myCube        = new Rubik();

            myPermutation.addCubicleData(new CubeCubicle(new Location(Face.F, Face.R)
                                                         , new Location(Face.F, Face.R), new Position(Face.U, Face.B)));
            Assert.AreEqual(true, myCube.isDifferentItemsOnlyInSecondFloorLessThanThree(myPermutation), "one");

            myPermutation.addCubicleData(new CubeCubicle(new Location(Face.F, Face.L)
                                                         , new Location(Face.F, Face.L), new Position(Face.U, Face.B)));
            Assert.AreEqual(true, myCube.isDifferentItemsOnlyInSecondFloorLessThanThree(myPermutation), "two");

            myPermutation.addCubicleData(new CubeCubicle(new Location(Face.B, Face.L)
                                                         , new Location(Face.B, Face.R), new Position(Face.U, Face.F)));
            Assert.AreEqual(false, myCube.isDifferentItemsOnlyInSecondFloorLessThanThree(myPermutation), "three");
        }