Esempio n. 1
0
        static int Main(string[] args)
        {
            var logOutput = args.Length > 2;
            var resultLog = new ResultLog(logOutput);

            var sourceFileName = args[0];
            var targetFileName = args[1];

            sourceFileName = GetFullPathName(sourceFileName);
            targetFileName = GetFullPathName(targetFileName);

            var source = Assembly.LoadFile(sourceFileName);
            var target = Assembly.LoadFile(targetFileName);

            CompareAssemblyMethods.Compare(resultLog, source, target);
            // Not really necessary as get and set methods should be found by CompareAssemblyMethods

            CompareAssemblyProperties.Compare(resultLog, source, target);
            CompareAssemblyFields.Compare(resultLog, source, target);

            if (resultLog.IsDifferent)
            {
                return(1);
            }

            return(0);
        }
Esempio n. 2
0
        static int Main(string[] args)
        {
            var logOutput = args.Length > 2;
            var resultLog = new ResultLog(logOutput);

            var sourceFileName = args[0];
            var targetFileName = args[1];

            sourceFileName = GetFullPathName(sourceFileName);
            targetFileName = GetFullPathName(targetFileName);

            var source = Assembly.LoadFile(sourceFileName);
            var target = Assembly.LoadFile(targetFileName);
            CompareAssemblyMethods.Compare(resultLog, source, target);
            // Not really necessary as get and set methods should be found by CompareAssemblyMethods

            CompareAssemblyProperties.Compare(resultLog, source, target);
            CompareAssemblyFields.Compare(resultLog, source, target);

            if (resultLog.IsDifferent)
            {
                return 1;
            }

            return 0;
        }