Exemplo n.º 1
0
        ///<summary></summary>
        public ILiftChangeReport GetChangeReport(IProgress progress)
        {
            StreamReader reference = null;
            StreamReader working   = null;

            try
            {
                try
                {
                    reference = new StreamReader(PathToReferenceCopy);
                }
                catch (Exception error)
                {
                    throw new ApplicationException(
                              string.Format("Could not open LiftChangeDetector Reference file at {0}.  {1}",
                                            PathToReferenceCopy, error.Message));
                }

                working = new StreamReader(_pathToLift);

                return(LiftChangeReport.DetermineChanges(reference, working, progress));
            }
            finally
            {
                if (reference != null)
                {
                    reference.Dispose();
                }

                if (working != null)
                {
                    working.Dispose();
                }
            }
        }
Exemplo n.º 2
0
        ///<summary></summary>
        public static LiftChangeReport DetermineChanges(TextReader original, TextReader modified, IProgress progress)
        {
            LiftChangeReport detector = new LiftChangeReport();

            detector.ComputeDiff(original, modified, progress);
            return(detector);
        }
Exemplo n.º 3
0
		///<summary></summary>
		public static LiftChangeReport DetermineChanges(TextReader original, TextReader modified, IProgress progress)
		{
			LiftChangeReport detector = new LiftChangeReport();
			detector.ComputeDiff(original, modified, progress);
			return detector;

		}