示例#1
0
        public void PosterService_should_call_handler_on_error()
        {
            bool errorHandlerCalled = false;
            var  httpService        = new MockErrorBinaryHttpService();

            new PosterService(new MockFileSystem(), httpService).Download(url, imagePath, (u, p) => errorHandlerCalled = true);
            Assert.IsTrue(errorHandlerCalled);
        }
示例#2
0
 public void PosterService_should_call_handler_on_error()
 {
     bool errorHandlerCalled = false;
     var httpService = new MockErrorBinaryHttpService();
     new PosterService(new MockFileSystem(), httpService).Download(url, imagePath, (u, p) => errorHandlerCalled = true);
     Assert.IsTrue(errorHandlerCalled);
 }