コード例 #1
0
            public void Then_expected_methods_are_called_the_correct_times()
            {
                _sut.Count(_query);

                Assert.Multiple(() =>
                {
                    _contextService.Received(_expectedContextManageCount).InitContext();
                    _contextService.Received(_expectedContextManageCount).ClearCurrentContext();
                });
            }
コード例 #2
0
 public void When_calling_count_for_a_null_query_Then_an_exception_is_thrown()
 {
     Assert.That(() => _sut.Count(null), Throws.ArgumentNullException);
 }