Ejemplo n.º 1
0
        private static Differences GetFileSystemDifferences()
        {
            var path1 = @"c:/files/test/project-one";
            var path2 = @"c:/files/test/project-two";

            IDiffChecker diffChecker = FileSystemDiffChecker.Create();

            var differences = diffChecker.FindDifferencesInPathNames(path1, path2);

            return(differences);
        }
Ejemplo n.º 2
0
        private static Differences CLIGetFileSystemDifferences()
        {
            var args = Environment.GetCommandLineArgs();

            if (args.Length != 3)
            {
                Environment.Exit(1);
            }

            var path1 = args[1];
            var path2 = args[2];

            Console.WriteLine(path1);
            Console.WriteLine(path2);

            IDiffChecker diffChecker = FileSystemDiffChecker.Create();

            var differences = diffChecker.FindDifferencesInPathNames(path1, path2);

            return(differences);
        }