Exemplo 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);
        }
Exemplo n.º 2
0
        private static Differences GetInMemoryDifferences()
        {
            var path1 = @"c:/files/project-one";
            var path2 = @"c:/files/project-two";

            var          paths       = TestPathGenerator.GeneratePaths();
            IDiffChecker diffChecker = InMemoryDiffChecker.Create(paths);

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

            return(differences);
        }
Exemplo n.º 3
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);
        }