Inheritance: ITestExecutor
Esempio n. 1
0
        public void CreateMocks()
        {
            contextMock = new Mock<IConeFixture>();

            contextMock.Setup(x => x.FixtureType).Returns(typeof(object));

            testResultMock = new Mock<ITestResult>();
            testMock = new Mock<IConeTest>();
            testMock.SetupGet(x => x.Attributes).Returns(new NullAttributeProvider());
            testExecutor = new TestExecutor(contextMock.Object);
        }
Esempio n. 2
0
        internal AddinSuite(Type type, IFixtureDescription description)
            : base(description.SuiteName, description.TestName)
        {
            this.suiteType = description.SuiteType;
            this.fixture = new ConeFixture(type, description.Categories, new DefaultObjectProvider());
            fixture.FixtureCreated += (_, e) => Fixture = e.Fixture;
            this.testExecutor = new TestExecutor(this.fixture);

            var pending = type.AsConeAttributeProvider().FirstOrDefault((IPendingAttribute x) => x.IsPending);
            if(pending != null) {
                RunState = RunState.Ignored;
                IgnoreReason = pending.Reason;
            }
        }
Esempio n. 3
0
 protected AddinTest(Test suite, TestExecutor testExecutor, string name)
     : base(BuildTestName(suite, name))
 {
     Parent = suite;
     this.testExecutor = testExecutor;
 }
Esempio n. 4
0
 public AddinTestMethod(ConeMethodThunk thunk, Test suite, TestExecutor testExecutor, string name)
     : base(suite, testExecutor, name)
 {
     this.thunk = thunk;
 }