Exemple #1
0
        private static void CompareFiles(List <string> commandParameters)
        {
            string firstPath  = commandParameters[0];
            string secondPath = commandParameters[1];

            Tester.CompareContent(firstPath, secondPath);
        }
 private static void TryCompareFiles(string input, string[] data)
 {
     if (data.Length == 3)
     {
         var firsPath   = data[1];
         var secondPath = data[2];
         Tester.CompareContent(firsPath, secondPath);
     }
 }
Exemple #3
0
 public static void TryCompareFiles(string input, string[] data)
 {
     if (data.Length == 3)
     {
         string file1 = data[1];
         string file2 = data[2];
         Tester.CompareContent(file1, file2);
     }
 }
        private static void TryCompareFiles(string input, string[] data)
        {
            if (!IsDataValid(data, 3))
            {
                return;
            }

            Tester.CompareContent(data[1], data[2]);
        }
Exemple #5
0
        private static void TryCompareFiles(string input, string[] data)
        {
            if (!IsCommandValidLenght(data, 3))
            {
                return;
            }

            string firstPath  = data[1];
            string secondPath = data[2];

            Tester.CompareContent(firstPath, secondPath);
        }
 private static void TryCompareFiles(string input, string[] data)
 {
     if (data.Length == 3)
     {
         string firstPath  = data[1];
         string secondPath = data[2];
         Tester.CompareContent(firstPath, secondPath);
     }
     else
     {
         DisplayInvalidCommandMessage(input);
     }
 }
Exemple #7
0
 static void Main(string[] args)
 {
     Tester.CompareContent(@"F:\SoftUni\CSharp-Fundamentals\CSharp Advanced\BashSoft\StoryMode\BashSoft\test2.txt", @"F:\SoftUni\CSharp-Fundamentals\CSharp Advanced\BashSoft\StoryMode\BashSoft\test3.txt");
 }