public void Compare()
 {
     var Comparer = new SimpleEqualityComparer<string>((x, y) => string.Equals(x, y), x => x.GetHashCode());
     Assert.True(Comparer.Equals("A", "A"));
     Assert.False(Comparer.Equals("A", "B"));
     Assert.False(Comparer.Equals("B", "A"));
 }
Ejemplo n.º 2
0
        public void Compare()
        {
            var Comparer = new SimpleEqualityComparer <string>((x, y) => string.Equals(x, y), x => x.GetHashCode());

            Assert.True(Comparer.Equals("A", "A"));
            Assert.False(Comparer.Equals("A", "B"));
            Assert.False(Comparer.Equals("B", "A"));
        }