Exemple #1
0
        public void BindingCompiler_SimpleBlockExpression_TaskSequence_VoidTaskJoining()
        {
            var vm         = new TestViewModel4();
            var resultTask = (Task)ExecuteBinding("Increment(); Multiply()", new[] { vm });

            resultTask.Wait();
            Assert.AreEqual(10, vm.Number);
        }
Exemple #2
0
        public void BindingCompiler_SimpleBlockExpression_TaskSequence_NonTaskTask()
        {
            var vm         = new TestViewModel4();
            var resultTask = (Task)ExecuteBinding("Number = 10; Increment();", new[] { vm });

            resultTask.Wait();
            Assert.AreEqual(11, vm.Number);
        }