Exemplo n.º 1
0
        static int Main(string[] args)
        {

            var tests = new SourceCodeTests();
            var success = tests.VerifyDefaultValues();
            success = success & tests.VerifyFileHeaders();
            success = success & tests.VerifyNamespacesAndClassNames();
            success = success & tests.VerifyProjectsInSync();


            var noInteractive = args.FirstOrDefault() == "no-interactive";


            if (success)
            {
                Console.WriteLine("YESS everything OK");
            }

            if (!noInteractive)
            {
                Console.WriteLine("press any key");
                Console.ReadKey();
            }


            if (success)
            {
                //error
                return 0;
            }
            return 1;
        }
Exemplo n.º 2
0
        static int Main(string[] args)
        {
            var tests   = new SourceCodeTests();
            var success = tests.VerifyDefaultValues();

            success = success & tests.VerifyFileHeaders();
            success = success & tests.VerifyNamespacesAndClassNames();
            success = success & tests.VerifyProjectsInSync();


            var noInteractive = args.FirstOrDefault() == "no-interactive";


            if (success)
            {
                Console.WriteLine("YESS everything OK");
            }

            if (!noInteractive)
            {
                Console.WriteLine("press any key");
                Console.ReadKey();
            }


            if (success)
            {
                //error
                return(0);
            }
            return(1);
        }