Exemplo n.º 1
0
 private UnitTestElementLocation GetUnitTestElementLocation(IClassDeclaration declaration)
 {
     var navigationRange = declaration.GetNameDocumentRange().TextRange;
       var containingRange = declaration.GetDocumentRange().TextRange;
       var projectFile = declaration.GetContainingFile().AssertNotNull().GetSourceFile().ToProjectFile();
       return new UnitTestElementLocation(projectFile, navigationRange, containingRange);
 }
Exemplo n.º 2
0
        private Ranges GetUnitTestElementLocation(IClassDeclaration declaration)
        {
            var navigationRange = declaration.GetNameDocumentRange();
            var containingRange = declaration.GetDocumentRange();

            return(new Ranges(navigationRange, containingRange));
        }
        private UnitTestElementLocation GetUnitTestElementLocation(IClassDeclaration declaration)
        {
            var navigationRange = declaration.GetNameDocumentRange().TextRange;
            var containingRange = declaration.GetDocumentRange().TextRange;
            var projectFile     = declaration.GetContainingFile().AssertNotNull().GetSourceFile().ToProjectFile();

            return(new UnitTestElementLocation(projectFile, navigationRange, containingRange));
        }
Exemplo n.º 4
0
 private Ranges GetUnitTestElementLocation(IClassDeclaration declaration)
 {
     var navigationRange = declaration.GetNameDocumentRange();
       var containingRange = declaration.GetDocumentRange();
       return new Ranges(navigationRange, containingRange);
 }