|
|
@@ -3,19 +3,23 @@
|
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
|
|
using System;
|
|
|
+using System.IO;
|
|
|
+using System.Threading.Tasks;
|
|
|
using DiffPlex;
|
|
|
using DiffPlex.DiffBuilder;
|
|
|
using DiffPlex.DiffBuilder.Model;
|
|
|
|
|
|
namespace ReactiveTests.Tests
|
|
|
{
|
|
|
- public class DiffPlexReporter
|
|
|
+ public static class DiffPlexReporter
|
|
|
{
|
|
|
- public void Report(string approvedText, string receivedText)
|
|
|
+ public static async Task Report(string receivedFile, string verifiedFile)
|
|
|
{
|
|
|
#if(!DEBUG)
|
|
|
+ var receivedText = File.ReadAllText(receivedFile);
|
|
|
+ var verifiedText = File.ReadAllText(verifiedFile);
|
|
|
var diffBuilder = new InlineDiffBuilder(new Differ());
|
|
|
- var diff = diffBuilder.BuildDiffModel(approvedText, receivedText);
|
|
|
+ var diff = diffBuilder.BuildDiffModel(verifiedText, receivedText);
|
|
|
|
|
|
foreach (var line in diff.Lines)
|
|
|
{
|