예제 #1
0
        // 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);
        }
예제 #2
0
        // 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);
        }
예제 #3
0
		// 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);
		}