public bool IsElementOfKind(IDeclaredElement declaredElement, UnitTestElementKind elementKind) { switch (elementKind) { case UnitTestElementKind.Test: 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; }
public bool IsElementOfKind(IDeclaredElement declaredElement, UnitTestElementKind elementKind) { switch (elementKind) { case UnitTestElementKind.Test: 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); }
static bool IsSpecification(IDeclaredElement declaredElement) { return declaredElement.IsSpecification() && IsInSpecificationContainer(declaredElement); }
public bool IsUnitTestElement(IDeclaredElement element) { return(element.IsContext() || element.IsSpecification()); }
public bool IsUnitTestElement(IDeclaredElement element) { return element.IsContext() || element.IsSpecification(); }
static bool IsSpecification(IDeclaredElement declaredElement) { return(declaredElement.IsSpecification() && IsInSpecificationContainer(declaredElement)); }
static bool IsSpecification(IDeclaredElement declaredElement) { return declaredElement.IsSpecification() && IsTestElement(declaredElement); }
static bool IsTestElement(IDeclaredElement declaredElement) { return declaredElement.IsContext() || declaredElement.IsSpecification(); }
public bool IsElementOfKind(IDeclaredElement declaredElement, UnitTestElementKind elementKind) { switch (elementKind) { case UnitTestElementKind.Test: return declaredElement.IsSpecification(); case UnitTestElementKind.TestContainer: return declaredElement.IsContext(); } return false; }