예제 #1
0
파일: EqSpecs.cs 프로젝트: snickroger/Totem
        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);
        }
예제 #2
0
파일: EqSpecs.cs 프로젝트: snickroger/Totem
        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);
        }
예제 #3
0
파일: EqSpecs.cs 프로젝트: snickroger/Totem
 void NoValues()
 {
     ExpectThrows <InvalidOperationException>(() => (bool)Eq.Values(1, 1));
 }
예제 #4
0
파일: Id.cs 프로젝트: promontis/Totem
 public bool Equals(Id other) =>
 Eq.Values(this, other).Check(x => x.ToString());
예제 #5
0
 public bool Equals(LinkText other)
 {
     return(Eq.Values(this, other).Check(x => x.Value));
 }
예제 #6
0
파일: Id.cs 프로젝트: snickroger/Totem
 public bool Equals(Id other)
 {
     return(Eq.Values(this, other).Check(x => x.ToString()));
 }