Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Dec 22, 2021
1 parent ff67a26 commit 56a1254
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/DiffEngineTray.Tests/HotKeyControlTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ public async Task WithKeys()
Key = "A"
}
};
await Verifier.Verify(target);
await Verify(target);
}

[Fact]
public async Task Default()
{
using var target = new HotKeyControl();
await Verifier.Verify(target);
await Verify(target);
}
}
#endif
14 changes: 7 additions & 7 deletions src/DiffEngineTray.Tests/MenuBuilderTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public async Task Empty()
{
await using var tracker = new RecordingTracker();
var menu = MenuBuilder.Build(() => { }, () => { }, tracker);
await Verifier.Verify(menu, settings);
await Verify(menu, settings);
}

[Fact]
Expand All @@ -18,7 +18,7 @@ public async Task OnlyMove()
await using var tracker = new RecordingTracker();
tracker.AddMove(file2, file2, "theExe", "theArguments", true, null);
var menu = MenuBuilder.Build(() => { }, () => { }, tracker);
await Verifier.Verify(menu, settings);
await Verify(menu, settings);
}

[Fact]
Expand All @@ -27,7 +27,7 @@ public async Task OnlyDelete()
await using var tracker = new RecordingTracker();
tracker.AddDelete(file1);
var menu = MenuBuilder.Build(() => { }, () => { }, tracker);
await Verifier.Verify(menu, settings);
await Verify(menu, settings);
}

[Fact]
Expand All @@ -39,7 +39,7 @@ public async Task Full()
tracker.AddMove(file3, file3, "theExe", "theArguments", true, null);
tracker.AddMove(file4, file4, "theExe", "theArguments", true, null);
var menu = MenuBuilder.Build(() => { }, () => { }, tracker);
await Verifier.Verify(menu, settings);
await Verify(menu, settings);
}

[Fact]
Expand All @@ -52,7 +52,7 @@ public async Task Many()
}

var menu = MenuBuilder.Build(() => { }, () => { }, tracker);
await Verifier.Verify(menu, settings);
await Verify(menu, settings);
}

[Fact]
Expand All @@ -62,7 +62,7 @@ public async Task Grouped()
tracker.AddDelete("file2.txt");
tracker.AddMove(file4, "file4.txt", "theExe", "theArguments", true, null);
var menu = MenuBuilder.Build(() => { }, () => { }, tracker);
await Verifier.Verify(menu, settings);
await Verify(menu, settings);
}

[Fact]
Expand All @@ -74,7 +74,7 @@ public async Task FullGrouped()
tracker.AddMove(file3, file3, "theExe", "theArguments", true, null);
tracker.AddMove(file4, "file4.txt", "theExe", "theArguments", true, null);
var menu = MenuBuilder.Build(() => { }, () => { }, tracker);
await Verifier.Verify(menu, settings);
await Verify(menu, settings);
}

public MenuBuilderTest(ITestOutputHelper output) :
Expand Down
4 changes: 2 additions & 2 deletions src/DiffEngineTray.Tests/OptionsFormTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public async Task WithKeys()
}
},
_ => Task.FromResult<IReadOnlyList<string>>(new List<string>()));
await Verifier.Verify(form);
await Verify(form);
}

[Fact]
Expand All @@ -50,7 +50,7 @@ public async Task Default()
using var form = new OptionsForm(
new(),
_ => Task.FromResult<IReadOnlyList<string>>(new List<string>()));
await Verifier.Verify(form);
await Verify(form);
}
}
#endif
10 changes: 5 additions & 5 deletions src/DiffEngineTray.Tests/PiperTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class PiperTest :
[Fact]
public Task MoveJson()
{
return Verifier.Verify(
return Verify(
PiperClient.BuildMovePayload(
"theTempFilePath",
"theTargetFilePath",
Expand All @@ -20,7 +20,7 @@ public Task MoveJson()
[Fact]
public Task DeleteJson()
{
return Verifier.Verify(
return Verify(
PiperClient.BuildMovePayload(
"theTempFilePath",
"theTargetFilePath",
Expand All @@ -40,7 +40,7 @@ public async Task Delete()
await Task.Delay(1000);
source.Cancel();
await task;
await Verifier.Verify(received);
await Verify(received);
}

[Fact]
Expand All @@ -53,7 +53,7 @@ public async Task Move()
await Task.Delay(1000);
source.Cancel();
await task;
await Verifier.Verify(received)
await Verify(received)
.ModifySerialization(x => x.DontScrubNumericIds());
}

Expand All @@ -76,7 +76,7 @@ public async Task SendOnly()
settings.ScrubLinesContaining("temp.txt");
//TODO: add "scrub source dir" to verify and remove the below
settings.ScrubLinesContaining("PiperClient");
await Verifier.Verify(Logs, settings);
await Verify(Logs, settings);
}

public PiperTest(ITestOutputHelper output) :
Expand Down
2 changes: 1 addition & 1 deletion src/DiffEngineTray.Tests/SettingsHelperTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public async Task ReadWrite()
}
});
var result = await SettingsHelper.Read();
await Verifier.Verify(result);
await Verify(result);
}
finally
{
Expand Down
2 changes: 1 addition & 1 deletion src/DiffEngineTray.Tests/SolutionDirectoryFinderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class SolutionDirectoryFinderTests :
[Fact]
public Task Find()
{
return Verifier.Verify(SolutionDirectoryFinder.Find(SourceFile));
return Verify(SolutionDirectoryFinder.Find(SourceFile));
}
}
#endif

0 comments on commit 56a1254

Please sign in to comment.