Skip to content

Commit

Permalink
Update MenuBuilderTest.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Mar 30, 2022
1 parent 1296b2e commit 52969ad
Showing 1 changed file with 56 additions and 35 deletions.
91 changes: 56 additions & 35 deletions src/DiffEngineTray.Tests/MenuBuilderTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ public class MenuBuilderTest :
public async Task Empty()
{
await using var tracker = new RecordingTracker();
var menu = MenuBuilder.Build(() =>
{
}, () =>
{
}, tracker);
var menu = MenuBuilder.Build(
() =>
{
},
() =>
{
},
tracker);
await Verify(menu, settings);
}

Expand All @@ -21,11 +24,14 @@ public async Task OnlyMove()
{
await using var tracker = new RecordingTracker();
tracker.AddMove(file2, file2, "theExe", "theArguments", true, null);
var menu = MenuBuilder.Build(() =>
{
}, () =>
{
}, tracker);
var menu = MenuBuilder.Build(
() =>
{
},
() =>
{
},
tracker);
await Verify(menu, settings);
}

Expand All @@ -34,11 +40,14 @@ public async Task OnlyDelete()
{
await using var tracker = new RecordingTracker();
tracker.AddDelete(file1);
var menu = MenuBuilder.Build(() =>
{
}, () =>
{
}, tracker);
var menu = MenuBuilder.Build(
() =>
{
},
() =>
{
},
tracker);
await Verify(menu, settings);
}

Expand All @@ -50,11 +59,14 @@ public async Task Full()
tracker.AddDelete(file2);
tracker.AddMove(file3, file3, "theExe", "theArguments", true, null);
tracker.AddMove(file4, file4, "theExe", "theArguments", true, null);
var menu = MenuBuilder.Build(() =>
{
}, () =>
{
}, tracker);
var menu = MenuBuilder.Build(
() =>
{
},
() =>
{
},
tracker);
await Verify(menu, settings);
}

Expand All @@ -67,11 +79,14 @@ public async Task Many()
tracker.AddDelete(file);
}

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

Expand All @@ -81,11 +96,14 @@ public async Task Grouped()
await using var tracker = new RecordingTracker();
tracker.AddDelete("file2.txt");
tracker.AddMove(file4, "file4.txt", "theExe", "theArguments", true, null);
var menu = MenuBuilder.Build(() =>
{
}, () =>
{
}, tracker);
var menu = MenuBuilder.Build(
() =>
{
},
() =>
{
},
tracker);
await Verify(menu, settings);
}

Expand All @@ -97,11 +115,14 @@ public async Task FullGrouped()
tracker.AddDelete("file2.txt");
tracker.AddMove(file3, file3, "theExe", "theArguments", true, null);
tracker.AddMove(file4, "file4.txt", "theExe", "theArguments", true, null);
var menu = MenuBuilder.Build(() =>
{
}, () =>
{
}, tracker);
var menu = MenuBuilder.Build(
() =>
{
},
() =>
{
},
tracker);
await Verify(menu, settings);
}

Expand Down

0 comments on commit 52969ad

Please sign in to comment.