public void Test( string path, int versionCode, string versionName )
        {
            string testPath = path + ".test";
            File.Copy( path, testPath, true );

            var versioner = new AndroidManifestVersioner( testPath, versionCode, versionName );
            versioner.Execute();

            string text = File.ReadAllText( testPath );
            Assert.True(text.Contains( " android:versionCode=\"133\" " )  );
            Assert.True(text.Contains( " android:versionName=\"1.0.133\">" )  );
        }
        public void Test(string path, int versionCode, string versionName)
        {
            string testPath = path + ".test";

            File.Copy(path, testPath, true);

            var versioner = new AndroidManifestVersioner(testPath, versionCode, versionName);

            versioner.Execute();

            string text = File.ReadAllText(testPath);

            Assert.True(text.Contains(" android:versionCode=\"133\" "));
            Assert.True(text.Contains(" android:versionName=\"1.0.133\">"));
        }
        public static void Main( string[] args )
        {
            Console.WriteLine( "Android Manifest Versioner." );

            if( args.Length == 0 )
            {
                Console.WriteLine( "usage: AndroidManifestVersioner <path> <versionCode> <versionName>.\r\n" );
                return;
            }

            Console.WriteLine( "AndroidManifestVersioner" );
            Console.WriteLine( "Path = " + args[0] );
            Console.WriteLine( "VersionCode = " + args[1] );
            Console.WriteLine( "VersionName = " + args[2] );

            var versioner = new AndroidManifestVersioner( args[0], int.Parse( args[1] ), args[2] );
            versioner.Execute();
        }
        public static void Main(string[] args)
        {
            Console.WriteLine("Android Manifest Versioner.");

            if (args.Length == 0)
            {
                Console.WriteLine("usage: AndroidManifestVersioner <path> <versionCode> <versionName>.\r\n");
                return;
            }

            Console.WriteLine("AndroidManifestVersioner");
            Console.WriteLine("Path = " + args[0]);
            Console.WriteLine("VersionCode = " + args[1]);
            Console.WriteLine("VersionName = " + args[2]);

            var versioner = new AndroidManifestVersioner(args[0], int.Parse(args[1]), args[2]);

            versioner.Execute();
        }