Beispiel #1
0
        private static void Main_()
        {
            System.Console.WriteLine(ExpressionsMatterKata.ExpressionMatter2(2, 1, 2));
            System.Console.WriteLine(ExpressionsMatterKata.ExpressionMatter2(1, 1, 1));
            System.Console.WriteLine(ExpressionsMatterKata.ExpressionMatter2(2, 1, 1));
            System.Console.WriteLine(ExpressionsMatterKata.ExpressionMatter2(1, 2, 3));
            System.Console.WriteLine(ExpressionsMatterKata.ExpressionMatter2(1, 3, 1));
            System.Console.WriteLine(ExpressionsMatterKata.ExpressionMatter2(2, 2, 2));

            System.Console.WriteLine(ExpressionsMatterKata.ExpressionMatter2(5, 1, 3));
            System.Console.WriteLine(ExpressionsMatterKata.ExpressionMatter2(3, 5, 7));
            System.Console.WriteLine(ExpressionsMatterKata.ExpressionMatter2(5, 6, 1));
            System.Console.WriteLine(ExpressionsMatterKata.ExpressionMatter2(1, 6, 1));
            System.Console.WriteLine(ExpressionsMatterKata.ExpressionMatter2(2, 6, 1));
            System.Console.WriteLine(ExpressionsMatterKata.ExpressionMatter2(6, 7, 1));

            System.Console.WriteLine(ExpressionsMatterKata.ExpressionMatter2(2, 10, 3));
            System.Console.WriteLine(ExpressionsMatterKata.ExpressionMatter2(1, 8, 3));
            System.Console.WriteLine(ExpressionsMatterKata.ExpressionMatter2(9, 7, 2));
            System.Console.WriteLine(ExpressionsMatterKata.ExpressionMatter2(1, 1, 10));
            System.Console.WriteLine(ExpressionsMatterKata.ExpressionMatter2(9, 1, 1));
            System.Console.WriteLine(ExpressionsMatterKata.ExpressionMatter2(10, 5, 6));
            System.Console.WriteLine(ExpressionsMatterKata.ExpressionMatter2(1, 10, 1));
        }
        public void LargestExpression(int a, int b, int c, int expected)
        {
            var actual = ExpressionsMatterKata.LargestExpression(a, b, c);

            Assert.AreEqual(expected, actual);
        }