예제 #1
0
        private void OnChanged(IReadOnlyCollection <ITypeElement> changedTypes)
        {
            var testElements = _linkedTypesService.GetUnitTestElementsFrom(changedTypes).SelectMany(x => x.DescendantsAndSelf(y => y.Children));

            foreach (var x in testElements)
            {
                _unitTestResultManager.MarkOutdated(x);
            }
        }
예제 #2
0
 private void OnChanged(IReadOnlyCollection <ITypeElement> changedTypes)
 {
     using (CompilationContextCookie.GetExplicitUniversalContextIfNotSet())
     {
         var linkedTypes   = changedTypes.SelectMany(LinkedTypesUtil.GetLinkedTypes).ToList();
         var relevantTests = linkedTypes.Select(x => _unitTestElementStuff.GetElement(x)).WhereNotNull();
         foreach (var relevantTest in relevantTests)
         {
             _unitTestResultManager.MarkOutdated(relevantTest);
         }
     }
 }