internal bool ContainsImplememntationFor(EnvDTE.Project project, string givenText)
 {
     try
     {
         var gaugeServiceClient = new GaugeServiceClient();
         return(string.Compare(gaugeServiceClient.GetParsedStepValueFromInput(project, StepText),
                               gaugeServiceClient.GetParsedStepValueFromInput(project, givenText),
                               StringComparison.Ordinal) == 0);
     }
     catch
     {
         return(false);
     }
 }
Exemplo n.º 2
0
 public Concept Search(string lineText)
 {
     try
     {
         var gaugeServiceClient = new GaugeServiceClient();
         return(GetAllConcepts().FirstOrDefault(
                    concept => string.CompareOrdinal(
                        gaugeServiceClient.GetParsedStepValueFromInput(_project, concept.StepText),
                        gaugeServiceClient.GetParsedStepValueFromInput(_project, lineText)) == 0));
     }
     catch
     {
         return(null);
     }
 }