Beispiel #1
0
        private UnitTestElementLocation GetUnitTestElementLocation(ITestDeclaration declaration)
        {
            var ranges = declaration.GetRanges();

            return(new UnitTestElementLocation(
                       declaration.GetSourceFile().ToProjectFile(),
                       ranges.NavigationRange.TextRange,
                       ranges.ContainingRange.TextRange));
        }
Beispiel #2
0
 private UnitTestElementLocation GetUnitTestElementLocation(ITestDeclaration declaration)
 {
     var ranges = declaration.GetRanges();
       return new UnitTestElementLocation(
       declaration.GetSourceFile().ToProjectFile(),
       ranges.NavigationRange.TextRange,
       ranges.ContainingRange.TextRange);
 }
Beispiel #3
0
 public virtual DocumentRange CalculateRange()
 {
     return(_treeNode.GetRanges().NavigationRange);
 }