private void CreateViewFolderIfNeeded() { if (configuration.HasView) { storageProvider.CreateViewFolder(configuration.View); } }
public void CreateViewFolder_CreatesFolder() { const string path = "path"; fileSystemUtilsMock.Setup(f => f.DirectoryExists(It.IsAny <string>())).Returns(false); provider.CreateViewFolder(path); fileSystemUtilsMock.Verify(f => f.DirectoryExists(It.IsAny <string>()), Times.Once); fileSystemUtilsMock.Verify(f => f.CreateDirectory(It.IsAny <string>()), Times.Once); }