public void Run() { ICompareContext compareContext; if (!ProjectAnalysisUtils.TryGetAssembliesToCompareAndAnalyzeThem(out compareContext)) { return; } Debug.Assert(compareContext != null); APIChangesDisplayer.Go(compareContext); }
public void Run() { ICompareContext compareContext; if (!ProjectAnalysisUtils.TryGetAssembliesToCompareAndAnalyzeThem(out compareContext)) { return; } Debug.Assert(compareContext != null); var methodsChanged = compareContext.NewerCodeBase.Methods.Where(compareContext.CodeWasChanged).Cast <IMember>().ToArray(); Console.WriteLine(); Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine(methodsChanged.Length + " method" + (methodsChanged.Length > 1 ? "s" : "") + " where code has been changed"); Console.WriteLine(); var methodsChangedDisplayer = new MethodsChangedDisplayer(methodsChanged, compareContext); methodsChangedDisplayer.Display(); }