Пример #1
0
        public static void BitwiseComparison()
        {
            var value1 = 40M;
            var value2 = 50M;

            Equal(value1.CompareTo(value2) < 0, BitwiseComparer <decimal> .Compare(value1, value2) < 0);
            value2 = default;
            Equal(value1.CompareTo(value2) > 0, BitwiseComparer <decimal> .Compare(value1, value2) > 0);
        }
Пример #2
0
 public static void BitwiseCompare()
 {
     True(BitwiseComparer <int> .Compare(0, int.MinValue) < 0);
 }