public void Compare()
 {
     var Comparer = new SimpleComparer<string>((x, y) => string.Compare(x, y, System.StringComparison.Ordinal));
     Assert.Equal(0, Comparer.Compare("A", "A"));
     Assert.Equal(-1, Comparer.Compare("A", "B"));
     Assert.Equal(1, Comparer.Compare("B", "A"));
 }
Example #2
0
        public void Compare()
        {
            var Comparer = new SimpleComparer <string>((x, y) => string.Compare(x, y, System.StringComparison.Ordinal));

            Assert.Equal(0, Comparer.Compare("A", "A"));
            Assert.Equal(-1, Comparer.Compare("A", "B"));
            Assert.Equal(1, Comparer.Compare("B", "A"));
        }