Beispiel #1
0
 public void TestMethodMulti()
 {
     TestContext.Run((string []inputs, string output) =>
     {
         var obj = new Question();
         obj.Func(inputs).Is(output);
     });
 }
Beispiel #2
0
 public void TestMethodSingle()
 {
     TestContext.Run((string input, string output) =>
     {
         var obj = new Question();
         obj.Func(input).Is(output);
     });
 }
Beispiel #3
0
        static void Main(string[] args)
        {
            var obj = new Question();

            var input = Console.ReadLine();
            var output = obj.Func(input);

            //var inputNum = 5;
            //var inputs = Enumerable.Repeat(Console.ReadLine(), inputNum).ToArray();
            //var output = obj.Func(inputs);


            Console.WriteLine(output);
        }