예제 #1
0
        public static void Puzzle045_Returns_Correct_Solution()
        {
            // Arrange
            long expected = 1533776805;

            // Act and Assert
            Puzzles.AssertSolution <Puzzle045>(expected);
        }
예제 #2
0
        public static void Puzzle024_Returns_Correct_Solution()
        {
            // Arrange
            long expected = 2783915460;

            // Act and Assert
            Puzzles.AssertSolution <Puzzle024>(expected);
        }
예제 #3
0
        public static void Puzzle044_Returns_Correct_Solution()
        {
            // Arrange
            long expected = 5482660;

            // Act and Assert
            Puzzles.AssertSolution <Puzzle044>(expected);
        }
예제 #4
0
        public static void Puzzle009_Returns_Correct_Solution()
        {
            // Arrange
            object expected = 31875000;

            // Act and Assert
            Puzzles.AssertSolution <Puzzle009>(expected);
        }
예제 #5
0
        public static void Puzzle015_Returns_Correct_Solution(string divisors, long expected)
        {
            // Arrange
            string[] args = new[] { divisors };

            // Act and Assert
            Puzzles.AssertSolution <Puzzle015>(args, expected);
        }
예제 #6
0
        public static void Puzzle014_Returns_Correct_Solution()
        {
            // Arrange
            object expected = 837799;

            // Act and Assert
            Puzzles.AssertSolution <Puzzle014>(expected);
        }
예제 #7
0
        public static void Puzzle049_Returns_Correct_Solution()
        {
            // Arrange
            long expected = 296962999629;

            // Act and Assert
            Puzzles.AssertSolution <Puzzle049>(expected);
        }
예제 #8
0
        public static void Puzzle047_Returns_Correct_Solution(string factors, int expected)
        {
            // Arrange
            string[] args = new[] { factors };

            // Act and Assert
            Puzzles.AssertSolution <Puzzle047>(args, expected);
        }
예제 #9
0
        public static void Puzzle047_Returns_Minus_One_If_Factors_Value_Is_Too_Small()
        {
            // Arrange
            string[] args = new[] { "1" };

            // Act and Assert
            Puzzles.AssertInvalid <Puzzle047>(args);
        }
예제 #10
0
        public static void Puzzle038_Returns_Correct_Solution()
        {
            // Arrange
            int expected = 932718654;

            // Act and Assert
            Puzzles.AssertSolution <Puzzle038>(expected);
        }
예제 #11
0
        public static void Puzzle043_Returns_Correct_Solution()
        {
            // Arrange
            long expected = 16695334890;

            // Act and Assert
            Puzzles.AssertSolution <Puzzle043>(expected);
        }
예제 #12
0
        public static void Puzzle030_Returns_Minus_One_If_Power_Is_Invalid()
        {
            // Arrange
            string[] args = new[] { "a" };

            // Act and Assert
            Puzzles.AssertInvalid <Puzzle030>(args);
        }
예제 #13
0
        public static void Puzzle021_Returns_Correct_Solution()
        {
            // Arrange
            long expected = 31626;

            // Act and Assert
            Puzzles.AssertSolution <Puzzle021>(expected);
        }
예제 #14
0
        public static void Puzzle013_Returns_Correct_Solution()
        {
            // Arrange
            object expected = "5537376230";

            // Act and Assert
            Puzzles.AssertSolution <Puzzle013>(expected);
        }
예제 #15
0
        public static void Puzzle003_Returns_Correct_Solution(string value, long expected)
        {
            // Arrange
            string[] args = new[] { value };

            // Act and Assert
            Puzzles.AssertSolution <Puzzle003>(args, expected);
        }
예제 #16
0
        public static void Puzzle034_Returns_Correct_Solution()
        {
            // Arrange
            int expected = 40730;

            // Act and Assert
            Puzzles.AssertSolution <Puzzle034>(expected);
        }
예제 #17
0
        public static void Puzzle003_Returns_Minus_One_If_Maximum_Value_Is_Invalid()
        {
            // Arrange
            string[] args = new[] { "a" };

            // Act and Assert
            Puzzles.AssertInvalid <Puzzle003>(args);
        }
예제 #18
0
        public static void Puzzle004_Returns_Correct_Solution(string digits, int expected)
        {
            // Arrange
            string[] args = new[] { digits };

            // Act and Assert
            Puzzles.AssertSolution <Puzzle004>(args, expected);
        }
예제 #19
0
        public static void Puzzle027_Returns_Correct_Solution()
        {
            // Arrange
            int expected = -59231;

            // Act and Assert
            Puzzles.AssertSolution <Puzzle027>(expected);
        }
예제 #20
0
        public static void Puzzle016_Returns_Minus_One_If_Power_Is_Too_Small()
        {
            // Arrange
            string[] args = new[] { "-1" };

            // Act and Assert
            Puzzles.AssertInvalid <Puzzle016>(args);
        }
예제 #21
0
        public static void Puzzle036_Returns_Correct_Solution()
        {
            // Arrange
            int expected = 872187;

            // Act and Assert
            Puzzles.AssertSolution <Puzzle036>(expected);
        }
예제 #22
0
        public static void Puzzle002_Returns_Minus_One_If_Maximum_Value_Is_Too_Small()
        {
            // Arrange
            string[] args = new[] { "0" };

            // Act and Assert
            Puzzles.AssertInvalid <Puzzle002>(args);
        }
예제 #23
0
        public static void Puzzle016_Returns_Correct_Solution(string power, int expected)
        {
            // Arrange
            string[] args = new[] { power };

            // Act and Assert
            Puzzles.AssertSolution <Puzzle016>(args, expected);
        }
예제 #24
0
        public static void Puzzle002_Returns_Correct_Solution(string maximum, int expected)
        {
            // Arrange
            string[] args = new[] { maximum };

            // Act and Assert
            Puzzles.AssertSolution <Puzzle002>(args, expected);
        }
예제 #25
0
        public static void Puzzle042_Returns_Correct_Solution()
        {
            // Arrange
            int expected = 162;

            // Act and Assert
            Puzzles.AssertSolution <Puzzle042>(expected);
        }
예제 #26
0
        public static void Puzzle023_Returns_Correct_Solution()
        {
            // Arrange
            int expected = 4179871;

            // Act and Assert
            Puzzles.AssertSolution <Puzzle023>(expected);
        }
예제 #27
0
        public static void Puzzle011_Returns_Correct_Solution()
        {
            // Arrange
            object expected = 70600674;

            // Act and Assert
            Puzzles.AssertSolution <Puzzle011>(expected);
            Puzzles.AssertSolution <Puzzle011>(expected);
        }
예제 #28
0
 public static void Puzzle033_Returns_Correct_Solution()
 {
     // Act and Assert
     Puzzles.AssertSolution <Puzzle033>(100);
 }