This code:
new LessThanValidator(10M).IsValid(5M, 10)
fails with:
System.ArgumentException : Object must be of type Decimal.
This should succeed as decimal 5 is still less than integer 10.
new LessThanValidator(10M).IsValid(5M, 10)
fails with:
System.ArgumentException : Object must be of type Decimal.
This should succeed as decimal 5 is still less than integer 10.