示例#1
0
        public static void PerfectNumberShouldThrowEx(int number)
        {
            // Arrange

            // Assert
            Assert.Throws <ArgumentException>(() => Aliquot.AliquotSum(number));
        }
示例#2
0
        public static void AliquotSumWork(int number, int expectedAS)
        {
            // Arrange

            // Act
            var result = Aliquot.AliquotSum(number);

            // Assert
            Assert.AreEqual(result, expectedAS);
        }