Esempio n. 1
0
        // Analysis disable once InconsistentNaming
        public void Constructor_DoesNotCreateThumbnailFolders_IfTheyExist()
        {
            var fileSystem = new FileSystemMock();

            fileSystem.SetDirectory(new SafeUri(largeThumbnailPath));
            fileSystem.SetDirectory(new SafeUri(normalThumbnailPath));

            // Analysis disable once ObjectCreationAsStatement
            new ThumbnailService(xdgDirectoryService, thumbnailerFactory, fileSystem);

            fileSystem.DirectoryMock.Verify(m => m.CreateDirectory(It.IsAny <SafeUri> ()), Times.Never());
        }