Example #1
0
        public void ChainTerminatorTest(int number, int expectedChainTerminator)
        {
            // Arrange

            // Act
            int chainTerminator = Problem92.CreateSquareDigitSumChain(number);

            // Asserts
            Assert.That(chainTerminator, Is.EqualTo(expectedChainTerminator));
        }
Example #2
0
        public void ChainSequence2Test(int number, int expectedSquareDigitSum)
        {
            // Arrange

            // Act
            int squareDigitSum = Problem92.GetSquareDigitSum(number);

            // Asserts
            Assert.That(squareDigitSum, Is.EqualTo(expectedSquareDigitSum));
        }