public void ManagedCache_NormalizeCacheServiceName()
 {
     PSCacheClient client = new PSCacheClient();
     Assert.Equal("foobar", client.NormalizeCacheServiceName("FOOBAR"));
     //can't start with a  number
     Assert.Throws(typeof(ArgumentException), () => { client.NormalizeCacheServiceName("2222"); });
     //too short
     Assert.Throws(typeof(ArgumentException), () => { client.NormalizeCacheServiceName("foo"); });
     //too long
     Assert.Throws(typeof(ArgumentException), () => { client.NormalizeCacheServiceName("h01234567890123456789"); });
     //empty
     Assert.Throws(typeof(ArgumentException), () => { client.NormalizeCacheServiceName(""); });
 }
        public void ManagedCache_NormalizeCacheServiceName()
        {
            PSCacheClient client = new PSCacheClient();

            Assert.Equal("foobar", client.NormalizeCacheServiceName("FOOBAR"));
            //can't start with a  number
            Assert.Throws(typeof(ArgumentException), () => { client.NormalizeCacheServiceName("2222"); });
            //too short
            Assert.Throws(typeof(ArgumentException), () => { client.NormalizeCacheServiceName("foo"); });
            //too long
            Assert.Throws(typeof(ArgumentException), () => { client.NormalizeCacheServiceName("h01234567890123456789"); });
            //empty
            Assert.Throws(typeof(ArgumentException), () => { client.NormalizeCacheServiceName(""); });
        }