Esempio n. 1
0
        public void Day_of_week(DateTime date, DayOfWeek dayOfWeek)
        {
            var result = Runner.RunWithInput("day_of_week.png", date.Year, date.Month, date.Day);

            RunAssert.HasNumericOutput(result, (long)dayOfWeek);
        }
Esempio n. 2
0
        public void Power_function_returns_power_of_input()
        {
            var result = Runner.RunWithInput("power_function.png", 17, 3);

            RunAssert.HasNumericOutput(result, 4913);
        }
Esempio n. 3
0
        public void Euclids_Algorithm_calculates_greatest_comon_divisor()
        {
            var result = Runner.RunWithInput("euclids_algorithm.png", 42, 35);

            RunAssert.HasNumericOutput(result, 7);
        }
Esempio n. 4
0
        public void Pi052_calculates_pi_as_3_1405()
        {
            var result = Runner.Run("pi_052.png");

            RunAssert.HasNumericOutput(result, 3_1405);
        }