public bool Equals(MaximumLengthRule other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(other._length == _length);
 }
 protected bool Equals(MaximumLengthRule other)
 {
     return _length.Equals(other._length) && Token.Equals(other.Token);
 }
 public bool Equals(MaximumLengthRule other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return other._length == _length;
 }
 public void BeforeEach()
 {
     theRule = new MaximumLengthRule(10);
     theModel = new AddressModel();
 }
Exemple #5
0
 protected bool Equals(MaximumLengthRule other)
 {
     return(_length.Equals(other._length) && Token.Equals(other.Token));
 }