public void Equals_ExtendedStringsAreNotEqual()
        {
            var s1 = "s";
            var s2 = "s____";
            var c  = new ConstantTimeComparer();

            Assert.IsFalse(c.Equals(s1, s2));
        }
        public void Equals_ReturnsTrueForEqualStrings()
        {
            var c = new ConstantTimeComparer();

            Assert.IsTrue(c.Equals(default(string), (string)null));
            Assert.IsTrue(c.Equals("", string.Empty));
            Assert.IsTrue(c.Equals("longer string", new string("longer string".Select(s => s).ToArray())));
        }
        public void Equals_ReturnsFalseForNonequalStrings()
        {
            var c = new ConstantTimeComparer();

            Assert.IsFalse(c.Equals(default(string), string.Empty));
            Assert.IsFalse(c.Equals("different case", "diFferent case"));
            Assert.IsFalse(c.Equals("different length", "different length "));
        }