Ejemplo n.º 1
0
        public void CreateThreadStart()
        {
            BindingEnvironment environment = new BindingEnvironment();
            Runner             function    = new Runner();
            FunctionWrapper    wrapper     = new FunctionWrapper(function, environment);
            Thread             th          = new Thread(wrapper.CreateThreadStart());

            th.Start();
            th.Join();
            Assert.IsTrue(function.WasInvoked);
        }