Example #1
0
        public bool IsTestProject(IPsiModule psiModule)
        {
            if (!_isMoqContainedByProjectName.TryGetValue(psiModule.DisplayName, out var isMoqcontained))
            {
                isMoqcontained = psiModule.GetReferences(null).Any(r => r.Module.Name == _moqReferenceName);
                _isMoqContainedByProjectName.Add(psiModule.DisplayName, isMoqcontained);
            }

            return(isMoqcontained);
        }