You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
private static async Task<long> ValidateMembership(long oldVersion, int? accountId, int? expectedMembershipId, int? unexpectedMembershipId)
{
return await WaitForResponse(() => GetElasticSearchAccount(accountId), userDocument =>
{
Assert.Greater(document.Version, oldVersion, "expected version to update for Index: {0} Id: {1}".FormatInvariant(document.Index, document.Id));
}));
}
private static async Task<T> WaitForResponse<T>(Func<T> fnGetResponse, Action<T> fnAcceptResponse)
where T : class
{
return await AssertEx.WaitUntil(fnGetResponse)
.DoesNotThrow(t => fnAcceptResponse(t));
}
The text was updated successfully, but these errors were encountered:
michael-sterling
changed the title
Improve message when invoking anonymous methods in DoesNotThrow
Improve message when invoking function variables in DoesNotThrow
Oct 28, 2021
Example message:
Example calling code:
The text was updated successfully, but these errors were encountered: