public async Task CommandAwaitTestTestCommand() { var vm = new CommandAsyncTestVM(); await vm.Command1.ExecuteAsync(null); Assert.AreEqual(vm.Value, 4); }
public async Task CommandAwaitTestTestCommand5() { var vm = new CommandAsyncTestVM(); vm.Command2.ListenToIsUIBusy(vm, false, Observable.Delay(new[] { false }.ToObservable(), TimeSpan.FromSeconds(3.5))); await vm.Command1.ExecuteAsync(null); Assert.AreEqual(vm.Value, 1); }
public async Task CommandAwaitTestTestCommand2() { var vm = new CommandAsyncTestVM(); vm.Command2.ListenToIsUIBusy(vm, false); await vm.Command1.ExecuteAsync(null); Assert.AreEqual(vm.Value, 1); }