Beispiel #1
0
        public void SetFrontFace_CorrectlySetsTheTargetedFace()
        {
            cube.SetFace(newFace, Side.Front);
            var face = cube.GetFace(Side.Front);

            Assert.AreEqual(Colour.Blue, face[0, 0].Left);
            Assert.AreEqual(Colour.Green, face[0, 0].Front);
            Assert.AreEqual(Colour.Yellow, face[0, 0].Top);
            Assert.AreEqual(Colour.Red, face[2, 2].Right);
            Assert.AreEqual(Colour.White, face[2, 2].Front);
            Assert.AreEqual(Colour.Orange, face[2, 2].Bottom);
        }