private async void RunTest() { PrepareUI(); var textBlockProgress = new Progress <string>(s => Output += "\n" + s); var pgBarProgress = new Progress <double>(s => Progress = s); var result = await _test.RunAsync(pgBarProgress, textBlockProgress, Address); Output += result; RefreshUI(); }