// Analysis disable once InconsistentNaming public void GethThumbnailsDir_ReturnsFolderForNormalThumbnails() { var environment = new EnvironmentMock("XDG_CACHE_HOME", "/path/to/.cache"); var xdg = new XdgDirectoryService(null, environment.Object); var result = xdg.GetThumbnailsDir(ThumbnailSize.Normal); Assert.AreEqual("/path/to/.cache/thumbnails/normal", result); }
// Analysis disable once InconsistentNaming public void GethThumbnailsDir_ReturnsFolderForNormalThumbnails() { var environment = new EnvironmentMock("XDG_CACHE_HOME", pathToCache); var xdg = new XdgDirectoryService(null, environment.Object); var result = xdg.GetThumbnailsDir(ThumbnailSize.Normal); Assert.AreEqual(Path.Combine("path", "to", ".cache", "thumbnails", "normal"), result); }
// Analysis disable once InconsistentNaming public void GethThumbnailsDir_ReturnsFolderForNormalThumbnails () { var environment = new EnvironmentMock ("XDG_CACHE_HOME", "/path/to/.cache"); var xdg = new XdgDirectoryService (null, environment.Object); var result = xdg.GetThumbnailsDir (ThumbnailSize.Normal); Assert.AreEqual ("/path/to/.cache/thumbnails/normal", result); }