static void Main(string[] args) { using (var swetest = new SwephTest(new Net46TestProvider())) swetest.RunTest(); Console.WriteLine("Press enter to quit..."); Console.ReadLine(); }
void RunTestLoadAsync() { var provider = new DroidTestProviderAsync(this); using (var swetest = new SwephTest(provider)) { swetest.RunTest(); tbResult.Text = provider.OutputContent.ToString(); } }
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 DroidTestProviderAsync(this); using (var swetest = new SwephTest(provider)) { await Task.Run(() => 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(); } }