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); } }
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]); }
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); } }
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"); }