Пример #1
0
        public void CubeStarts_With_CorrectFaceColours(Side side, Colour colour)
        {
            var face = cube.GetFace(side);

            Assert.AreEqual(9, face.Length);

            foreach (var block in face)
            {
                var blockFace = side switch
                {
                    Side.Front => block.Front,
                    Side.Back => block.Back,
                    Side.Left => block.Left,
                    Side.Right => block.Right,
                    Side.Top => block.Top,
                    Side.Bottom => block.Bottom,
                    _ => null
                };

                Assert.AreEqual(colour, blockFace);
            }
        }