示例#1
0
        public void TestKeyExtract_ExistingKey()
        {
            var key  = CacheKeyHelper.GenerateKey("MyProject.MyResources", "en", true);
            var name = CacheKeyHelper.GetContainerName(key);

            Assert.Equal("MyProject.MyResources", name);
        }
示例#2
0
        public void TestKeyExtract_NonExisting()
        {
            var name = CacheKeyHelper.GetContainerName("asdf");

            Assert.Null(name);
        }