protected Element(MSpecUnitTestProvider provider, IPsi psiModuleManager, ICache cacheManager, Element parent, ProjectModelElementEnvoy projectEnvoy, IClrTypeName declaringTypeName, bool isIgnored) { if (declaringTypeName == null) { throw new ArgumentNullException("declaringTypeName"); } if (projectEnvoy != null) { this._projectEnvoy = projectEnvoy; } this._provider = provider; this._declaringTypeName = declaringTypeName; this._psiModuleManager = psiModuleManager; this._cacheManager = cacheManager; if (isIgnored) { this.ExplicitReason = "Ignored"; } this.TypeName = declaringTypeName; this.Parent = parent; this.Children = new List <IUnitTestElement>(); this.State = UnitTestElementState.Valid; this._taskFactory = new UnitTestTaskFactory(this._provider.ID); }
protected Element(MSpecUnitTestProvider provider, Element parent, IClrTypeName declaringTypeName, UnitTestingCachingService cachingService, IUnitTestElementManager elementManager, bool isIgnored) { if (declaringTypeName == null) { throw new ArgumentNullException("declaringTypeName"); } this._provider = provider; this._declaringTypeName = declaringTypeName; this._cachingService = cachingService; this._elementManager = elementManager; if (isIgnored) { this.ExplicitReason = "Ignored"; } this.Parent = parent; this.Children = new BindableCollection <IUnitTestElement>(UT.Locks.ReadLock); this._taskFactory = new UnitTestTaskFactory(this._provider.ID); }
protected Element(MSpecUnitTestProvider provider, PsiModuleManager psiModuleManager, CacheManager cacheManager, Element parent, ProjectModelElementEnvoy projectEnvoy, IClrTypeName declaringTypeName, bool isIgnored) { if (projectEnvoy == null && !Shell.Instance.IsTestShell) { throw new ArgumentNullException("project"); } if (declaringTypeName == null) { throw new ArgumentNullException("declaringTypeName"); } if (projectEnvoy != null) { _projectEnvoy = projectEnvoy; } _provider = provider; _declaringTypeName = declaringTypeName; _psiModuleManager = psiModuleManager; _cacheManager = cacheManager; if (isIgnored) { ExplicitReason = "Ignored"; } TypeName = declaringTypeName; Parent = parent; Children = new List <IUnitTestElement>(); State = UnitTestElementState.Valid; _taskFactory = new UnitTestTaskFactory(_provider.ID); }