예제 #1
0
 public void ErrorTest()
 {
     Assert.Throws <ArgumentException>(() => SumMultiples.SumMul(4, 1));
     Assert.Throws <ArgumentException>(() => SumMultiples.SumMul(0, 20));
 }
예제 #2
0
 public void SampleTest()
 {
     Assert.AreEqual(20, SumMultiples.SumMul(2, 9));
     Assert.AreEqual(1860, SumMultiples.SumMul(4, 123));
     Assert.AreEqual(86469, SumMultiples.SumMul(123, 4567));
 }