Esempio n. 1
0
 protected override async Task <ExpandoObject> _RunTestAsync(ExpandoObject parameters, params Func <ExpandoObject, ExpandoObject>[] merge)
 {
     return(await TestHostAsync(parameters, async (p, m) => {
         var e = await base._RunTestAsync(parameters, merge);
         return e.AddOrMerge("langs", EMAIL.RunTests());
     }, _LogError, merge));
 }
Esempio n. 2
0
        public void LanguageRunTest()
        {
            AggregateException errors = new AggregateException();
            var testResults           = EMAIL.RunTests(exc => errors = exc);

            testResults.ForEach(tr => Console.WriteLine(tr.ToJson()));
            errors.InnerExceptions.ForEach(error => Console.WriteLine(error.ToMessages() + "\n\n"));
            Assert.AreEqual(4, errors.InnerExceptions.Count);
            ExceptionAssert.Propagates <AggregateException>(() => EMAIL.RunTests(), exc => {
                Assert.AreEqual(4, exc.InnerExceptions.Count);
            });
        }
Esempio n. 3
0
 public IHttpActionResult RunTest() => Ok(EMAIL.RunTests());