public void TestGetSafeLockNameCompat()
        {
            SqlDistributedReaderWriterLock.MaxNameLength.ShouldEqual(SqlDistributedLock.MaxNameLength);

            var cases = new[]
            {
                string.Empty,
                "abc",
                "\\",
                new string('a', SqlDistributedLock.MaxNameLength),
                new string('\\', SqlDistributedLock.MaxNameLength),
                new string('x', SqlDistributedLock.MaxNameLength + 1)
            };

            foreach (var lockName in cases)
            {
                // should be compatible with SqlDistributedLock
                SqlDistributedReaderWriterLock.GetSafeName(lockName).ShouldEqual(SqlDistributedLock.GetSafeName(lockName));
            }
        }
 public override string GetSafeName(string name) => SqlDistributedReaderWriterLock.GetSafeName(name);