示例#1
0
        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));
        }
示例#2
0
        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));
        }
示例#3
0
        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));
        }