示例#1
0
 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();
            }
        }
示例#3
0
        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();
            }
        }
示例#5
0
        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();
            }
        }