示例#1
0
        void ValueNotEqual()
        {
            var left  = new { Value = 1 };
            var right = new { Value = 2 };

            var check = Eq.Values(left, right).Check(x => x.Value);

            ExpectNot((bool)check);
        }
示例#2
0
        void ValuesNotEqual()
        {
            var left  = new { ValueA = 1, ValueB = 10 };
            var right = new { ValueA = 1, ValueB = 11 };

            var check = Eq.Values(left, right).Check(x => x.ValueA).Check(x => x.ValueB);

            ExpectNot((bool)check);
        }
示例#3
0
 void NoValues()
 {
     ExpectThrows <InvalidOperationException>(() => (bool)Eq.Values(1, 1));
 }
示例#4
0
 public static bool operator !=(LinkPath x, LinkPath y) => Eq.OpNot(x, y);
示例#5
0
 public static bool operator ==(LinkPath x, LinkPath y) => Eq.Op(x, y);
示例#6
0
 public static bool operator !=(Index x, Index y) => Eq.OpNot(x, y);
示例#7
0
 public static bool operator ==(Index x, Index y) => Eq.Op(x, y);
示例#8
0
 public bool Equals(LinkText other)
 {
     return(Eq.Values(this, other).Check(x => x.Value));
 }
示例#9
0
 void OpEqual()
 {
     Expect(Eq.Op(1, 1));
 }
示例#10
0
文件: Id.cs 项目: promontis/Totem
 public bool Equals(Id other) =>
 Eq.Values(this, other).Check(x => x.ToString());
示例#11
0
 public static bool operator !=(Terms x, Terms y) => Eq.OpNot(x, y);
示例#12
0
        //
        // Operators
        //

        public static bool operator ==(Terms x, Terms y) => Eq.Op(x, y);
示例#13
0
 public static bool operator !=(LinkText x, string y) => Eq.OpNot(x.Value, y);
示例#14
0
 public static bool operator !=(LinkText x, LinkText y) => Eq.OpNot(x, y);
示例#15
0
 public static bool operator ==(LinkText x, LinkText y) => Eq.Op(x, y);
示例#16
0
文件: Id.cs 项目: promontis/Totem
 public static bool operator ==(Id x, Id y) => Eq.Op(x, y);
示例#17
0
文件: Id.cs 项目: promontis/Totem
 public static bool operator !=(Id x, Id y) => Eq.OpNot(x, y);
示例#18
0
 void OpNotEqual()
 {
     ExpectNot(Eq.Op(1, 2));
 }
示例#19
0
文件: Id.cs 项目: snickroger/Totem
 public bool Equals(Id other)
 {
     return(Eq.Values(this, other).Check(x => x.ToString()));
 }