Exemple #1
0
 public StateMachineViewModel Setup(TestContext testContext)
 {
     context = testContext;
     return(new StateMachineViewModel(() =>
     {
         QUnit.start();
         QUnit.ok(true);
         context.Dispose();
     }));
 }
        public EventViewModel Setup(TestContext context)
        {
            testContext = context;
            context.Element.Attribute("data-bind", "attach: { keydown: OnKeyDown }");

            return(new EventViewModel(() => {
                QUnit.start();
                QUnit.ok(true);
                context.Dispose();
            }));
        }