Exemplo n.º 1
0
 public bool Equals(ValueReader <T> x, ValueReader <T> y)
 {
     if (ReferenceEquals(x, y))
     {
         return(true);
     }
     if (ReferenceEquals(x, null))
     {
         return(false);
     }
     if (ReferenceEquals(y, null))
     {
         return(false);
     }
     if (x.GetType() != y.GetType())
     {
         return(false);
     }
     return(Equals(x.GetMemberName(), y.GetMemberName()));
 }
Exemplo n.º 2
0
 public void RegisterItem(ValueReader <T> valueReader, ExpectedValue expectedValue)
 {
     _items.Add(new MatchComparerItems <T>(valueReader, expectedValue));
 }
Exemplo n.º 3
0
 public int GetHashCode(ValueReader <T> obj)
 {
     return(obj.GetMemberName().GetHashCode());
 }
Exemplo n.º 4
0
 public MatchComparerItems(ValueReader <T> valueReader, ExpectedValue expectedValue)
 {
     _expectedValue = expectedValue;
     ValueReader    = valueReader;
 }