Verify() public method

public Verify ( AssemblyGroup asmGroup, string typeName = null ) : void
asmGroup AssemblyGroup
typeName string
return void
Exemplo n.º 1
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;
            }
        }
Exemplo n.º 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);
            }
        }