예제 #1
0
        void RunTest()
        {
            var provider = new UniversalTestProvider();

            using (var swetest = new SwephTest(provider))
            {
                swetest.RunTest();
                tbResult.Text = provider.OutputContent.ToString();
            }
        }
예제 #2
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();
            }
        }