public static void PerfectNumberShouldThrowEx(int number) { // Arrange // Assert Assert.Throws <ArgumentException>(() => Aliquot.AliquotSum(number)); }
public static void AliquotSumWork(int number, int expectedAS) { // Arrange // Act var result = Aliquot.AliquotSum(number); // Assert Assert.AreEqual(result, expectedAS); }