Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 private async Task <string> GetTextInternal()
 {
     return(await _clipboardService.GetTextAsync());
 }