I get "types of actual and formal var parameters must be identical" on
TArgs.Items[0].IsAny<TList<TDate>>,
with this field and method:
FConflictedDates : TList<TDate>;
procedure GetConflictedDates(var DateList: TList<TDate>; const Route : String);
This call:
GetConflictedDates(FConflictedDates,
cbxRoute.Items[cbxRoute.ItemIndex].Caption);
and this test:
Assert.WillNotRaise(
procedure
begin
lViewModel.Received(Times.Once)
.GetConflictedDates(
TArgs.Items[0].IsAny<TList<TDate>>,
TArgs.Items[1].IsEqual<String>('1-A'));
end, EMockException);
Any help would be appreciated