Example #1
0
 public void TearDown()
 {
     num = null;
 }
 public void ShouldReturnTheCorrectDigitalRoot(long value, int expected)
 {
     Assert.Equal(expected, DigitalRoot.CalculateDigitalRoot(value));
 }
Example #3
0
 public void SetUp()
 {
     num = new DigitalRoot();
 }
 public void Test()
 {
     Assert.AreEqual(7, DigitalRoot.SumOfDigits(16));
     Assert.AreEqual(6, DigitalRoot.SumOfDigits(456));
 }