Permalink
Browse files

Can now filter by test usages in find results

  • Loading branch information...
1 parent faf2f71 commit 066fd567f772281d5b70a9f565b5bc7330d023ff @citizenmatt committed Jan 30, 2013
Showing with 10 additions and 0 deletions.
  1. +10 −0 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;

0 comments on commit 066fd56

Please sign in to comment.