Пример #1
0
 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 );
 }
Пример #2
0
 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 );
 }