public override void Arrange()
        {
            base.Arrange();

            _testExceptions = new[] { new Exception("exception1"), new Exception("exception2") };
            CleanupMock.Setup(c => c.Run(It.IsAny <Func <IEnumerable <FileInfo> > >())).Returns(_testExceptions);
        }
Пример #2
0
 public void then_cleanup_is_called_with_expected_date()
 {
     CleanupMock.Verify(m => m.Run(
                            It.IsAny <Func <IEnumerable <FileInfo> > >()),
                        Times.Once);
 }