コード例 #1
0
        public void GetCacheKey_should_return_null()
        {
            //arrange
            var provider = new AssemblyResourceProvider();

            //act
            var result = provider.GetCacheKey("");

            //assert
            Assert.IsNull(result);
        }
コード例 #2
0
        public void GetCacheKey_ShouldReturnNull()
        {
            // Arrange
            var          provider    = new AssemblyResourceProvider();
            const string virtualPath = "~/EPiServer/Geta.Epi.FontThumbnail/ClientResources/css/all.min.css";

            // Act
            var result = provider.GetCacheKey(virtualPath);

            // Assert
            Assert.Null(result);
        }