Beispiel #1
0
        public void ReplaceAll2sByAnEqualNumberOf1sAsTheNumberToTheLeft(int[] input, int[] expected)
        {
            var numerology = new Numerology();
            var result     = numerology.Parse(input);

            expected.ShouldBeEquivalentTo(result);
        }
Beispiel #2
0
        public void WhenInputContains9_ReplaceThemByTwo10()
        {
            var numerology      = new Numerology();
            var input           = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
            var expected_output = new int[] { 1, 1, 3, 4, 5, 6, 7, 8, 10, 10, 10 };
            var result          = numerology.Parse(input);

            expected_output.ShouldBeEquivalentTo(result);
        }