예제 #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();
            }));
        }
예제 #3
0
 public void It_should_have_correct_reference()
 {
     QUnit.ok(!context.Element.Is(":enabled"));
     context.Dispose();
 }
예제 #4
0
 public void It_should_have_correct_reference()
 {
     context.Element.Click();
     QUnit.ok(model.Success);
     context.Dispose();
 }