public void SumOfDigitsShouldWorkCorrectlyWithNegativeNumber() { var summator = new Summator(); var result = summator.SumOfDigits(-123); Assert.AreEqual(6, result); }
public void SumOfDigitsShouldWorkCorrectlyWithZero() { var summator = new Summator(); var result = summator.SumOfDigits(0); Assert.AreEqual(0, result); }
public void SumOfDigitsShouldWorkCorrectlyWithMillions() { var summator = new Summator(); var result = summator.SumOfDigits(1111111); Assert.AreEqual(7, result); }
public void SumOfDigitsShouldWorkCorrectlyWithLongNumber() { var summator = new Summator(); var result = summator.SumOfDigits(9876543210); Assert.AreEqual(45, result); }
public void SumOfDigitsShouldWorkCorrectlyForADigit() { // Arange var summator = new Summator(); // Act var result = summator.SumOfDigits(8); // Assert Assert.AreEqual(8, result); }