示例#1
0
        public async Task CommandAwaitTestTestCommand()
        {
            var vm = new CommandAsyncTestVM();
            await vm.Command1.ExecuteAsync(null);

            Assert.AreEqual(vm.Value, 4);
        }
示例#2
0
        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);
        }
示例#3
0
        public async Task CommandAwaitTestTestCommand2()
        {
            var vm = new CommandAsyncTestVM();

            vm.Command2.ListenToIsUIBusy(vm, false);

            await vm.Command1.ExecuteAsync(null);

            Assert.AreEqual(vm.Value, 1);
        }