private static string CompareSDTextFiles(string sFile, string dFile) { string sourceFileName = Path.Combine(pathSource, sFile); string destinationFileName = Path.Combine(pathDestination, dFile); return(CompareTxtFiles.CompareTextFiles(sourceFileName, destinationFileName)); }
public static string CompareResponseBodyByFiles(string actualResponseBody, string expectedResponseBody) { string sFile = @"ac.txt"; string dFile = @"ex.txt"; ExportTmpTextFiles(@"ac.txt", @"ex.txt", actualResponseBody, expectedResponseBody); string sourceFileName = Path.Combine(pathSource, sFile); string destinationFileName = Path.Combine(pathDestination, dFile); return(CompareTxtFiles.CompareTextFiles(sourceFileName, destinationFileName)); }
private static string CompareSDTextFiles(string sFile, string dFile, string actualResponseBody) { string sourceFileName = Path.Combine(pathSource, sFile); StreamWriter sw = new StreamWriter(sourceFileName); sw.WriteLine(actualResponseBody); sw.Close(); sw.Dispose(); string destinationFileName = Path.Combine(pathDestination, dFile); return(CompareTxtFiles.CompareTextFiles(sourceFileName, destinationFileName)); }