Beyond Compare
From Compare .NET Objects
| Compare .NET Objects | |
| Beyond Compare | |
| Send Feedback | |
| Using Compare .NET Objects > Reports > Beyond Compare |
Glossary Item Box
Beyond Compare Report
Compare .NET objects offers the ability to output the results as text files and then launch the third party difference tool Beyond Compare.
http://www.scootersoftware.com/index.php
Example
[Test]
public void BeyondCompareReportTest()
{
if (File.Exists("beyondExpected.txt"))
File.Delete("beyondExpected.txt");
if (File.Exists("beyondActual.txt"))
File.Delete("beyondActual.txt");
Movie beyondExpected = new Movie();
beyondExpected.Name = "Oblivion";
beyondExpected.PaymentForTomCruise = 2000000M;
Movie beyondActual = new Movie();
beyondActual.Name = "Edge of Tomorrow";
beyondActual.PaymentForTomCruise = 3000000M;
CompareLogic compareLogic = new CompareLogic();
compareLogic.Config.MaxDifferences = Int32.MaxValue;
ComparisonResult result = compareLogic.Compare(beyondExpected, beyondActual);
BeyondCompareReport beyondCompare = new BeyondCompareReport();
beyondCompare.OutputFiles(result.Differences, "beyondExpected.txt", "beyondActual.txt");
Assert.IsTrue(File.Exists("beyondExpected.txt"));
Assert.IsTrue(File.Exists("beyondActual.txt"));
beyondCompare.LaunchApplication("beyondExpected.txt", "beyondActual.txt");
}