Beispiel #1
0
 public override void WriteResult(int index, NetmockeryTestCase netmockeryTestCase, NetmockeryTestCaseResult result)
 {
     Console.WriteLine(result.ResultAsString);
     if (result.Error)
     {
         Console.WriteLine($"FAILURE test case {index} {netmockeryTestCase.Name}");
     }
 }
Beispiel #2
0
        public NetmockeryTestCaseResult ExecuteTestAndOutputResult(int index, NetmockeryTestCase test)
        {
            WriteBeginTest(index, test);

            var result = Url != null?test.ExecuteAgainstUrlAsync(Url).Result : test.ExecuteAsync(endpointCollection, now : now).Result;

            WriteResult(result);

            responsesCoveredByTests.Add(Tuple.Create(result.EndpointName, result.ResponseIndex));

            return(result);
        }
Beispiel #3
0
 public override void WriteBeginTest(int index, NetmockeryTestCase testcase)
 {
     Console.Write($"{index.ToString().PadLeft(3)} {testcase.Name.PadRight(60)}");
 }
Beispiel #4
0
 public abstract void WriteResult(int index, NetmockeryTestCase testcase, NetmockeryTestCaseResult result);
Beispiel #5
0
 public abstract void WriteBeginTest(int index, NetmockeryTestCase testcase);