WinMerge Report

From Compare .NET Objects

Compare .NET Objects
WinMerge Report
Send Feedback
Using Compare .NET Objects > Reports > WinMerge Report

Glossary Item Box

WinMerge Report

Compare .NET objects offers the ability to output the results as text files and then launch the third party difference tool WinMerge.

http://winmerge.org/

Example

[Test]
public void WinMergeReportTest()
{
 if (File.Exists("winMergeExpected.txt"))
  File.Delete("winMergeExpected.txt");

 if (File.Exists("winMergeActual.txt"))
  File.Delete("winMergeActual.txt");

 Movie winMergeExpected = new Movie();
 winMergeExpected.Name = "Oblivion";
 winMergeExpected.PaymentForTomCruise = 2000000M;

 Movie winMergeActual = new Movie();
 winMergeActual.Name = "Edge of Tomorrow";
 winMergeActual.PaymentForTomCruise = 3000000M;

 CompareLogic compareLogic = new CompareLogic();
 compareLogic.Config.MaxDifferences = Int32.MaxValue;
 ComparisonResult result = compareLogic.Compare(winMergeExpected, winMergeActual);

 WinMergeReport winMergeReport = new WinMergeReport();
 winMergeReport.OutputFiles(result.Differences, "winMergeExpected.txt", "winMergeActual.txt");

 Assert.IsTrue(File.Exists("winMergeExpected.txt"));
 Assert.IsTrue(File.Exists("winMergeActual.txt"));

 winMergeReport.LaunchApplication("winMergeExpected.txt", "winMergeActual.txt");
}

© Kellerman Software 2018. All Rights Reserved.