public ExtendedInterfaceVerifier(Options options)
        {
            _options = options;

            VerifiedTypes = new List<string>();
            Errors = new List<string>();
        }
Exemple #2
0
        private static int Process(Options options)
        {
            try
            {
                Console.WriteLine("Start Verify: " + options.Input);

                var asmGroup = new AssemblyGroup(options.Input);
                var verifier = new ExtendedInterfaceVerifier(options);
                verifier.Verify(asmGroup);

                if (options.Verbose)
                {
                    foreach (var type in verifier.VerifiedTypes)
                    {
                        Console.WriteLine("VerifiedType: " + type);
                    }
                }

                if (verifier.Errors.Any())
                {
                    foreach (var error in verifier.Errors)
                    {
                        Console.WriteLine("! " + error);
                    }
                    return 1;
                }

                Console.WriteLine("Done.");
                return 0;
            }
            catch (Exception e)
            {
                Console.WriteLine("Exception in processing:\n" + e);
                return 1;
            }
        }