public async Task Can_set_and_get_text() { var sut = new WindowsClipboardService(TimeSpan.FromMinutes(1)); var expected = "Hello world"; await sut.SetTextAsync(expected); var actual = await sut.GetTextAsync(); Assert.That(actual, Is.EqualTo(expected)); }
private async Task <string> GetTextInternal() { return(await _clipboardService.GetTextAsync()); }