void RunTest() { var provider = new UniversalTestProvider(); using (var swetest = new SwephTest(provider)) { swetest.RunTest(); tbResult.Text = provider.OutputContent.ToString(); } }
async Task RunTestAsync() { var provider = new UniversalTestProvider(); using (var swetest = new SwephTest(provider)) { await Task.Run(() => swetest.RunTest()); await Task.Delay(1000); tbResult.Text = provider.OutputContent.ToString(); } }