Example #1
0
        public void GetOutputFileLocation_HashInFileName()
        {
            var fileLocation = Guid.NewGuid().ToString() + "_#";
            var hash         = "HASH";

            var strategy = new DefaultCacheInvalidationStrategy();

            Assert.AreEqual(fileLocation.Replace("#", hash), strategy.GetOutputFileLocation(fileLocation, hash));
        }
Example #2
0
        public void GetOutputFileLocation()
        {
            var fileLocation = Guid.NewGuid().ToString();
            var hash         = "HASH";

            var strategy = new DefaultCacheInvalidationStrategy();

            Assert.AreEqual(fileLocation, strategy.GetOutputFileLocation(fileLocation, hash));
        }