public void GetSumTest() { Euler target = new Euler(); int fromValue = 1; int toValue = 999; int divisor = 3; long expected = 166833; long actual; actual = target.GetSum( fromValue, toValue, divisor ); Assert.AreEqual( expected, actual ); }
public void GetSumAssociativepPart1Test() { Euler target = new Euler(); int fromValue = 1; int toValue = 500; int divisor = 3; long expected = 41583; long actual; actual = target.GetSum( fromValue, toValue, divisor ); Assert.AreEqual( expected, actual ); }