Esempio n. 1
0
        public void Return_Correct_Replacement_For_Direction_And_Position(ReplacementDirection replacementDirection, int position, int expected)
        {
            var pyramidPosition = new PyramidPosition(position);

            var actual = pyramidPosition.GetReplacementPosition(replacementDirection);

            Assert.Equal(expected, actual);
        }
Esempio n. 2
0
        public void Return_Zero_For_Position_That_Cannot_Be_Replaced(ReplacementDirection replacementDirection, int position)
        {
            var pyramidPosition = new PyramidPosition(position);
            var expected        = 0;
            var actual          = pyramidPosition.GetReplacementPosition(replacementDirection);

            Assert.Equal(expected, actual);
        }