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); }
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; } }
protected AddinTest(Test suite, TestExecutor testExecutor, string name) : base(BuildTestName(suite, name)) { Parent = suite; this.testExecutor = testExecutor; }
public AddinTestMethod(ConeMethodThunk thunk, Test suite, TestExecutor testExecutor, string name) : base(suite, testExecutor, name) { this.thunk = thunk; }