protected async Task WhenWaitingForSomethingToBeDone(IAppiumSession sut) { var textBox = sut.FindTextBox("AsyncWpfOutputTextBox"); do { await Task.Delay(100); } while (!textBox.Text.Contains(Done)); }
protected void ThenItIsDone(IAppiumSession sut) { var textBox = sut.FindTextBox("AsyncWpfOutputTextBox"); Assert.IsTrue(textBox.Text.Contains(Done)); }