Esempio n. 1
0
        void Assert_CanFindClockwiseAdjacentSidesOf(Side side)
        {
            var adjacents = CubeGeometry.GetClockwiseAdjacentFaces(side);

            Assert.Equal(4, adjacents.Length);
            var opposite = CubeGeometry.OppositeSideOf(side);

            foreach (var adjacent in adjacents)
            {
                Assert.True(adjacent != side && adjacent != opposite);
            }

            Assert_AdjacentSidesListGoAroundFaceInOrder(adjacents);
        }
Esempio n. 2
0
 public void OppositeSidesOfCube(Side s1, Side s2)
 {
     Assert.Equal(s1, CubeGeometry.OppositeSideOf(s2));
     Assert.Equal(s2, CubeGeometry.OppositeSideOf(s1));
 }