Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Can now filter by test usages in find results

  • Loading branch information...
commit 066fd567f772281d5b70a9f565b5bc7330d023ff 1 parent faf2f71
@citizenmatt authored
View
10 Source/Machine.Specifications.ReSharperRunner.6.0/MSpecUnitTestProvider.cs
@@ -119,6 +119,12 @@ public bool IsElementOfKind(IUnitTestElement element, UnitTestElementKind elemen
return element is ContextSpecificationElement || element is BehaviorSpecificationElement;
case UnitTestElementKind.TestContainer:
return element is ContextElement || element is BehaviorElement;
+ case UnitTestElementKind.TestStuff:
+ return element is ContextSpecificationElement || element is BehaviorSpecificationElement ||
+ element is ContextElement || element is BehaviorElement;
+ case UnitTestElementKind.Unknown:
+ return !(element is ContextSpecificationElement || element is BehaviorSpecificationElement ||
+ element is ContextElement || element is BehaviorElement);
}
return false;
@@ -132,6 +138,10 @@ public bool IsElementOfKind(IDeclaredElement declaredElement, UnitTestElementKin
return declaredElement.IsSpecification();
case UnitTestElementKind.TestContainer:
return declaredElement.IsContext() || declaredElement.IsBehavior();
+ case UnitTestElementKind.TestStuff:
+ return declaredElement.IsSpecification() || declaredElement.IsContext() || declaredElement.IsBehavior();
+ case UnitTestElementKind.Unknown:
+ return !(declaredElement.IsSpecification() || declaredElement.IsContext() || declaredElement.IsBehavior());
}
return false;
Please sign in to comment.
Something went wrong with that request. Please try again.