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