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

            // Assert
            Assert.Throws <ArgumentException>(() => PerfectNumberChecker.IsPerfectNumber(number));
        }
Beispiel #2
0
        public static void PerfectNumberWork(int number)
        {
            // Arrange

            // Act
            var result = PerfectNumberChecker.IsPerfectNumber(number);

            // Assert
            Assert.IsTrue(result);
        }