コード例 #1
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"));
 }
コード例 #2
0
ファイル: GenericComparer.cs プロジェクト: ewin66/VilinCode
        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"));
        }