protected void AssertQueriesWithoutSettingContexts(params Query[] expectedsArr)
        {
            var actuals   = Sut.Export(Context);
            var expecteds = Lists.NewList(expectedsArr);

            CollectionAssert.AreEqual(expecteds, actuals);
        }
예제 #2
0
 private IKaVEList <Query> ExtractUsages(Context ctx)
 {
     try
     {
         return(_usageExtractor.Export(ctx));
     }
     catch (Exception e)
     {
         Log("error!!\n{0}", e);
         return(Lists.NewList <Query>());
     }
 }
 private IKaVEList <Query> GetObjectUsages(Context ctx)
 {
     try
     {
         return(_usageExtractor.Export(ctx));
     }
     catch (AssertException ae)
     {
         // happens for anonymized names, for now, I just ignore these contexts
         _errorMessages.Add(ae.Message);
         return(Lists.NewList <Query>());
     }
 }