diff --git a/src/DiffEngineTray.Tests/DiffRunnerViewerFocusRaceTest.cs b/src/DiffEngineTray.Tests/DiffRunnerViewerFocusRaceTest.cs index 60301f36..03fa76b0 100644 --- a/src/DiffEngineTray.Tests/DiffRunnerViewerFocusRaceTest.cs +++ b/src/DiffEngineTray.Tests/DiffRunnerViewerFocusRaceTest.cs @@ -71,7 +71,7 @@ public async Task A_move_the_tray_has_tracked_is_a_focus_and_nothing_more() await Assert.That(fixture.Launches).IsEqualTo(1); // Focus raised the window over the entry that was already there, so nothing re-tracked it: // a Diff would have replaced the move, losing the exe and arguments the piper send carries. - await Assert.That(fixture.TrackedExe()).IsEqualTo(Exe); + await Assert.That(fixture.TrackedExe()).IsEqualTo(exe); } sealed class Fixture : @@ -124,7 +124,7 @@ public Fixture() /// that always worked. /// public void Track() => - tracker.AddMove(Temp, Target, Exe, "--diff", false, null); + tracker.AddMove(Temp, Target, exe, "--diff", false, null); public bool Tracks(string key) => ((ITrackedFiles) tracker).Has(key); @@ -169,13 +169,13 @@ public async ValueTask DisposeAsync() /// Guarded as existing and never started: the pair is the viewer's, so nothing here reaches a /// process launch. /// - static readonly string Exe = Environment.ProcessPath!; + static readonly string exe = Environment.ProcessPath!; static ResolvedTool Viewer() => new( - name: DiffTool.DiffEngineViewer.ToString(), + name: nameof(DiffTool.DiffEngineViewer), tool: DiffTool.DiffEngineViewer, - exePath: Exe, + exePath: exe, launchArguments: new( Left: (temp, target) => $"\"{target}\" \"{temp}\"", Right: (temp, target) => $"\"{temp}\" \"{target}\""), diff --git a/src/DiffEngineTray.Tests/DiffRunnerViewerMoveTest.cs b/src/DiffEngineTray.Tests/DiffRunnerViewerMoveTest.cs index eb71de3c..ffb4795d 100644 --- a/src/DiffEngineTray.Tests/DiffRunnerViewerMoveTest.cs +++ b/src/DiffEngineTray.Tests/DiffRunnerViewerMoveTest.cs @@ -80,7 +80,7 @@ static async Task CaptureMove(Func> launch) static ResolvedTool Viewer() => new( - name: DiffTool.DiffEngineViewer.ToString(), + name: nameof(DiffTool.DiffEngineViewer), tool: DiffTool.DiffEngineViewer, // Guarded as existing, and never started: the tray takes the move, so nothing here // reaches a launch. diff --git a/src/DiffEngineViewer.Documents/DocumentRenderer.cs b/src/DiffEngineViewer.Documents/DocumentRenderer.cs index 53b881fb..3866490f 100644 --- a/src/DiffEngineViewer.Documents/DocumentRenderer.cs +++ b/src/DiffEngineViewer.Documents/DocumentRenderer.cs @@ -1,4 +1,3 @@ -using System.Text; using GeoConvert; using Morph; using Morph.PDFium; diff --git a/src/DiffEngineViewer.Tests/DiffEngineViewer.Tests.csproj b/src/DiffEngineViewer.Tests/DiffEngineViewer.Tests.csproj index 00308d84..61ebf0bb 100644 --- a/src/DiffEngineViewer.Tests/DiffEngineViewer.Tests.csproj +++ b/src/DiffEngineViewer.Tests/DiffEngineViewer.Tests.csproj @@ -20,6 +20,10 @@ --> + + + +