Exemple #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);
 }
        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));
        }
 private Ranges GetUnitTestElementLocation(IClassDeclaration declaration)
 {
     var navigationRange = declaration.GetNameDocumentRange();
       var containingRange = declaration.GetDocumentRange();
       return new Ranges(navigationRange, containingRange);
 }