I am trying to test one of my methods by seeing how many results are being passed into my Save method
. The pertinent line is:
await paymentSampleRepository.Received()
.SaveSamplesAsync(Arg.Do<List<PaymentSamplePopulation>>(x =>
Assert.Equal(sampleCount, x.Count())
), modifiedBy);
I am obviously missing something about how to test this... how do I test the Count
of what's being passed into SaveSamplesAsync
This is always showing as passing. I've tried sampleCount
and sampleCount + 1
in the Assert
and they both show as passing!
If need be, I can show the whole test method.