public void GetOutputWebPath_NoHash()
        {
            var renderToPath = Guid.NewGuid().ToString();

            var strategy = new HashAsVirtualDirectoryCacheInvalidationStrategy();

            Assert.AreEqual(renderToPath, strategy.GetOutputWebPath(renderToPath, null, null));
        }
        public void GetOutputWebPath_No_Querystring()
        {
            var renderToPath = Guid.NewGuid().ToString();
            var hashKeyName = Guid.NewGuid().ToString();
            var hash = Guid.NewGuid().ToString();

            var strategy = new HashAsVirtualDirectoryCacheInvalidationStrategy();

            Assert.AreEqual(renderToPath + "?" + hashKeyName + "=" + hash, strategy.GetOutputWebPath(renderToPath, hashKeyName, hash));
        }
        public void GetOutputWebPath_HashInFolderName()
        {
            var renderToPath = "/#/" + Guid.NewGuid().ToString();
            var hashKeyName = Guid.NewGuid().ToString();
            var hash = Guid.NewGuid().ToString();

            var strategy = new HashAsVirtualDirectoryCacheInvalidationStrategy();

            Assert.AreEqual(renderToPath.Replace("#", hashKeyName + "-" + hash), strategy.GetOutputWebPath(renderToPath, hashKeyName, hash));
        }