Skip to content

Commit abae315

Browse files
fix: assert has pilot on vm
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent ac4d4fa commit abae315

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/MakaMek.Presentation.Tests/ViewModels/StartNewGameViewModelTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,6 +1120,7 @@ public async Task ShowUnitInfo_ShouldPassPilotData_WhenUnitHasPilot()
11201120

11211121
await ((IAsyncCommand<Guid>)localPlayerVm.ShowUnitInfoCommand).ExecuteAsync(unitId);
11221122

1123-
await _navigationService.Received(1).ShowViewModelForResultAsync<UnitInfoViewModel, object?>(Arg.Any<UnitInfoViewModel>());
1123+
await _navigationService.Received(1).ShowViewModelForResultAsync<UnitInfoViewModel, object?>(
1124+
Arg.Is<UnitInfoViewModel>(vm => vm.HasPilot));
11241125
}
11251126
}

0 commit comments

Comments
 (0)