Since we switched to containArrayOfStructs in the expect method, it's now not possible to check that an event is not generated. I'm thinking we should just provide an option when declaring the test as either 'contains' or 'matches', as really since i've started thinking about these integration tests as testing the whole bounded context, I do want to assert the exact array of events generated are expected. I'd also vote for that to return as the default behaviour, with the contains mode as the option. thoughts?
Since we switched to
containArrayOfStructsin theexpectmethod, it's now not possible to check that an event is not generated. I'm thinking we should just provide an option when declaring the test as either 'contains' or 'matches', as really since i've started thinking about these integration tests as testing the whole bounded context, I do want to assert the exact array of events generated are expected. I'd also vote for that to return as the default behaviour, with thecontainsmode as the option. thoughts?