Exemple #1
0
        public async Task GetCurrentAsync_ValidProxyController_ReturnsResultFromController()
        {
            var current = new CommandEntry();

            proxyController.GetCurrentEntryAsync().Returns(current);
            IBackendAsync backend = new LocalBackend(null, proxyController, null);

            Assert.That(await backend.GetCurrentAsync().ConfigureAwait(false), Is.SameAs(current));
        }
        public async Task GetCurrentEntryAsync_NetshReturnsEmptyResult_ReturnsNotSetResult()
        {
            var currentEntry = await controller.GetCurrentEntryAsync().ConfigureAwait(false);

            Assert.That(currentEntry, Is.Not.Null);
            Assert.That(currentEntry.Name, Is.EqualTo("<not set>"));
        }
Exemple #3
0
 public Task <CommandEntry> GetCurrentAsync()
 {
     return(proxyController.GetCurrentEntryAsync());
 }