Beispiel #1
0
        public void SnakeCaseStrategyEquality()
        {
            var s1 = new SnakeCaseNamingStrategy();
            var s2 = new SnakeCaseNamingStrategy();

            Assert.IsTrue(s1.Equals(s2));
            Assert.IsTrue(s1.GetHashCode() == s2.GetHashCode());
        }
Beispiel #2
0
        public void DifferentStrategyEquality()
        {
            NamingStrategy s1 = new SnakeCaseNamingStrategy();
            NamingStrategy s2 = new DefaultNamingStrategy();

            Assert.IsFalse(s1.Equals(s2));
            Assert.IsFalse(s1.GetHashCode() == s2.GetHashCode());
        }