public TestContext(IContainer container, Test test, ITestObserver listener) { _container = container; _test = test; _listener = listener; _container.Inject <ITestContext>(this); _container.Inject(test); _container.Configure(x => { x.For <IFixture>().AlwaysUnique(); x.For <IFixtureContext>().Use(this); x.SetAllProperties(o => o.OfType <IFixtureContext>()); }); Finder = new ObjectFinder(); StartupActionNames = new string[0]; BackupResolver = t => { throw new ApplicationException("This service is not registered"); }; }
public bool IsTestVariable(ObjectFinder finder) { return(finder.CanBeParsed(_type)); }