Example #1
0
        protected override void beforeEach()
        {
            conditions = new TestStopConditions()
            {
                BreakOnExceptions = true,
                BreakOnWrongs     = true,
                TimeoutInSeconds  = 45
            };

            Services.Inject(conditions);

            test       = new Test("something");
            theResults = new TestResult()
            {
                Counts = new Counts()
            };

            MockFor <ITestRunnerDomain>().Expect(x => x.HasStarted()).Return(false);
            MockFor <ITestRunnerDomain>()
            .Expect(x => x.RunTest(new TestExecutionRequest(test, conditions)))
            .Return(theResults);



            project = new Project();
            ClassUnderTest.Project = project;

            ClassUnderTest.RunTest(test);
        }
Example #2
0
        public void SetUp()
        {
            view       = new TestStopConditionsView();
            conditions = new TestStopConditions();

            view.Conditions = conditions;

            conditions.TimeoutInSeconds = 60;

            view.Handle(new ProjectLoaded(new Project()
            {
                TimeoutInSeconds = 30
            }));
        }
Example #3
0
        protected override void beforeEach()
        {
            var hierarchy = DataMother.BuildHierarchy(@"
workspace1/test1,Success
");

            theTest = hierarchy.FindTest("workspace1/test1");
            theTest.ShouldNotBeNull();

            stopConditions = new TestStopConditions();
            Services.Inject(stopConditions);

            ClassUnderTest.Project = new Project();
            ClassUnderTest.Project.WorkspaceFor("workspace1").StartupActions = new string[] { "a", "b" };
        }