示例#1
0
        void RunTestLoadAsync()
        {
            var provider = new WpfTestProviderAsync();

            using (var swetest = new SwephTest(provider))
            {
                swetest.RunTest();
                tbResult.Text = provider.OutputContent.ToString();
            }
        }
示例#2
0
        async Task RunTestAsync()
        {
            var provider = new WpfTestProviderAsync();

            using (var swetest = new SwephTest(provider))
            {
                await Task.Run(() => swetest.RunTest());

                tbResult.Text = provider.OutputContent.ToString();
            }
        }