Inheritance: IConeFixture
Ejemplo n.º 1
0
        public void EstablishContext()
        {
            TestContext = new Mock<ITestContext>();
            Result = new Mock<ITestResult>();

            var fixture = new ConeFixture(typeof(Fixture), Enumerable.Empty<string>(), _ => new Fixture { Interceptor = TestContext.Object });
            ExecutionContext = TestExecutionContext.For(fixture);
        }
Ejemplo 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;
            }
        }
Ejemplo n.º 3
0
 public NUnitSuite(ConeFixture fixture)
     : base(fixture)
 {
 }
Ejemplo n.º 4
0
 void CreateAndReleaseFixture(Type type, Func<Type, object> fixtureBuilder)
 {
     var fixture = new ConeFixture(type, new string[0], fixtureBuilder);
     fixture.Initialize();
     fixture.Release();
 }
Ejemplo n.º 5
0
 public void given_SimpleFixture_instance()
 {
     FixtureInstance = new SimpleFixture();
     Fixture = new ConeFixture(FixtureInstance.GetType(), new string[0], _ => FixtureInstance);
 }
Ejemplo n.º 6
0
 public ConePadSuite(ConeFixture fixture)
 {
     this.fixture = fixture;
 }
Ejemplo n.º 7
0
 public MSTestSuite(ConeFixture fixture)
     : base(fixture)
 {
 }