public void ChainTerminatorTest(int number, int expectedChainTerminator) { // Arrange // Act int chainTerminator = Problem92.CreateSquareDigitSumChain(number); // Asserts Assert.That(chainTerminator, Is.EqualTo(expectedChainTerminator)); }
public void ChainSequence2Test(int number, int expectedSquareDigitSum) { // Arrange // Act int squareDigitSum = Problem92.GetSquareDigitSum(number); // Asserts Assert.That(squareDigitSum, Is.EqualTo(expectedSquareDigitSum)); }