public ContextElement CreateContext(ITypeElement type)
        {
            if (_cache.Classes.ContainsKey(type))
            {
                return(_cache.Classes[type]);
            }

            var context = GetOrCreateContextElement(_provider,
#if RESHARPER_61
                                                    _manager,
                                                    _psiModuleManager,
                                                    _cacheManager,
#endif
                                                    _project,
                                                    _projectEnvoy,
#if RESHARPER_6
                                                    type.GetClrName().FullName,
#else
                                                    type.CLRName,
#endif
                                                    _assemblyPath,
                                                    type.GetSubjectString(),
                                                    type.GetTags(),
                                                    type.IsIgnored());

#if RESHARPER_6
            foreach (var child in context.Children)
            {
                child.State = UnitTestElementState.Pending;
            }
#endif

            _cache.Classes.Add(type, context);
            return(context);
        }
    public ContextElement CreateContext(ITypeElement type)
    {
      if (_cache.Classes.ContainsKey(type))
      {
        return _cache.Classes[type];
      }

      var context = GetOrCreateContextElement(_provider,
#if RESHARPER_61
                                              _manager,
                                              _psiModuleManager,
                                              _cacheManager,
#endif
                                              _project,
                                              _projectEnvoy,
                                              type.GetClrName().FullName,
                                              _assemblyPath,
                                              type.GetSubjectString(),
                                              type.GetTags(),
                                              type.IsIgnored());

      foreach (var child in context.Children)
      {
        child.State = UnitTestElementState.Pending;
      }

      _cache.Classes.Add(type, context);
      return context;
    }
    public ContextElement CreateContext(ITypeElement type)
    {
      if (_cache.Classes.ContainsKey(type))
      {
        return _cache.Classes[type];
      }

      ContextElement context = new ContextElement(_provider,
                                                  _project,
                                                  type.CLRName,
                                                  _assemblyPath,
                                                  type.GetTags(),
                                                  type.IsIgnored());
      _cache.Classes.Add(type, context);
      return context;
    }
        public ContextElement CreateContext(ITypeElement type)
        {
            if (_cache.Classes.ContainsKey(type))
            {
                return(_cache.Classes[type]);
            }

            ContextElement context = new ContextElement(_provider,
                                                        _projectEnvoy,
                                                        type.CLRName,
                                                        _assemblyPath,
                                                        type.GetSubjectString(),
                                                        type.GetTags(),
                                                        type.IsIgnored());

            _cache.Classes.Add(type, context);
            return(context);
        }
    public ContextElement CreateContext(ITypeElement type)
    {
      if (_cache.Classes.ContainsKey(type))
      {
        return _cache.Classes[type];
      }

      ContextElement context = new ContextElement(_provider,
                                                  _projectEnvoy,
#if RESHARPER_6
                                                  type.GetClrName().FullName,
#else
                                                  type.CLRName,
#endif
                                                  _assemblyPath,
                                                  type.GetSubjectString(),
                                                  type.GetTags(),
                                                  type.IsIgnored());
      _cache.Classes.Add(type, context);
      return context;
    }
        public ContextElement CreateContext(ITypeElement type)
        {
            var context = GetOrCreateContext(_provider,
                                             _manager,
                                             _psiModuleManager,
                                             _cacheManager,
                                             _project,
                                             _projectEnvoy,
                                             type.GetClrName().GetPersistent(),
                                             _assemblyPath,
                                             type.GetSubjectString(),
                                             type.GetTags(),
                                             type.IsIgnored());

            foreach (var child in context.Children)
            {
                child.State = UnitTestElementState.Pending;
            }

            _cache.Contexts.Add(type, context);
            return(context);
        }
    public ContextElement CreateContext(ITypeElement type)
    {
      var context = GetOrCreateContext(_provider,
                                       _manager,
                                       _psiModuleManager,
                                       _cacheManager,
                                       _project,
                                       _projectEnvoy,
                                       type.GetClrName().GetPersistent(),
                                       _assemblyPath,
                                       type.GetSubjectString(),
                                       type.GetTags(),
                                       type.IsIgnored());

      foreach (var child in context.Children)
      {
        child.State = UnitTestElementState.Pending;
      }

      _cache.Contexts.Add(type, context);
      return context;
    }