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
Consider the following test fixture with two tests (the only difference between Test1 and Test2 is that I've switcher null/ids between the act and assert parts):
Test1 will fail with the following message, note the lack of null elements in the performed invocation:
Moq.MockException :
Expected invocation on the mock at least once, but was never performed:
mock => mock.GetMatchingCustomers(null, null, 1)
No setups configured.
Performed invocations:
IStatsRepository.GetMatchingCustomers(null, ["foo", "bar", "baz"], 1)
Test2 will fail with the following message, note the complete lack of the array in the expected invocation:
Moq.MockException :
Expected invocation on the mock at least once, but was never performed:
mock => mock.GetMatchingCustomers(null, , 1)
No setups configured.
Performed invocations:
IStatsRepository.GetMatchingCustomers(null, null, 1)
In case it's relevant, I'm using NUnit with ReSharper's test runner.
The text was updated successfully, but these errors were encountered:
Consider the following test fixture with two tests (the only difference between
Test1
andTest2
is that I've switchernull
/ids
between the act and assert parts):Test1
will fail with the following message, note the lack ofnull
elements in the performed invocation:Test2
will fail with the following message, note the complete lack of the array in the expected invocation:In case it's relevant, I'm using NUnit with ReSharper's test runner.
The text was updated successfully, but these errors were encountered: