public void Then_expected_methods_are_called_the_correct_times() { _sut.Any(_query); Assert.Multiple(() => { _contextService.Received(_expectedContextManageCount).InitContext(); _contextService.Received(_expectedContextManageCount).ClearCurrentContext(); }); }
public void When_calling_any_for_a_null_query_Then_an_exception_is_thrown() { Assert.That(() => _sut.Any(null), Throws.ArgumentNullException); }