CommonTests.Framework.TestRunner.ExecuteAllTestsAsync C# (CSharp) Method

ExecuteAllTestsAsync() public method

public ExecuteAllTestsAsync ( ) : Task
return Task
        public async Task<bool> ExecuteAllTestsAsync()
        {
            return await Task.Run(() => Execute());  
        }

Usage Example

Example #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            // Get our button from the layout resource,
            // and attach an event to it
            Button button = FindViewById<Button>(Resource.Id.MyButton);
            //button.Click += delegate { button.Text = string.Format("{0} clicks!", count++); };
            button.Click += OnClick;
            var txtBox = FindViewById<TextView>(Resource.Id.TestOutput);

            txtBox.Text = "Executing tests...";
            try
            {
                runner = new AndroidRunner(txtBox, RunOnUiThread);
                runner.ExecuteAllTestsAsync();
            }
            catch(Exception e)
            {
                txtBox.Text = e.ToString();
            }
        }
All Usage Examples Of CommonTests.Framework.TestRunner::ExecuteAllTestsAsync