public void Compare()
 {
     GenericComparer<string> Comparer = new GenericComparer<string>();
     Assert.Equal(0, Comparer.Compare("A", "A"));
     Assert.Equal(-1, Comparer.Compare("A", "B"));
     Assert.Equal(1, Comparer.Compare("B", "A"));
 }
예제 #2
0
        public void Compare()
        {
            GenericComparer <string> Comparer = new GenericComparer <string>();

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