Ejemplo n.º 1
0
        protected override void beforeEach()
        {
            MockFor <IExecutionQueue>().Expect(x => x.GetAllQueuedTests()).Return(new Test[0]);
            MockFor <IExecutionQueue>().Expect(x => x.IsExecuting()).Return(true);

            ClassUnderTest.Activate(DataMother.ScreenObjectRegistry());
        }
Ejemplo n.º 2
0
        protected override void beforeEach()
        {
            Test[] tests = DataMother.TestArray(3);
            items = new[] { new object(), new object(), new object() };

            for (int i = 0; i < items.Length; i++)
            {
                MockFor <IQueuedItemFactory>().Expect(x => x.Build(tests[i])).Return(items[i]);
            }

            MockFor <IExecutionQueue>().Expect(x => x.GetAllQueuedTests()).Return(tests);
            MockFor <IExecutionQueue>().Expect(x => x.IsEmpty()).Return(false);

            ClassUnderTest.Activate(DataMother.ScreenObjectRegistry());
        }