Sometimes it's better to specify the limits, in which case Between is a good 
name (although it fails to make clear whether the range is inclusive or 
exclusive of the limits themselves), but quite often it's easier to specify a 
central value and a tolerance either side of it - which is what I wanted here.

On 4 Oct 2013, at 17:50, Reginald Blue <[email protected]> wrote:

> I looked, I think that is the most straightforward way that I could see.  You 
> could ask to add your "RangeConstraint" to the next version... though I think 
> I'd recommend "Between" for it's name instead, but that's just me.
> 
> 
> On Fri, Oct 4, 2013 at 12:32 PM, <[email protected]> wrote:
> I found a way to do this by creating a RangeConstraint class as a subclass of 
> AbstractConstraint, although I'd still be interested to know if there is a 
> more straightforward way.
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Rhino.Mocks" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/rhinomocks.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "Rhino.Mocks" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/rhinomocks/_WoOlhrdaAg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/rhinomocks.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino.Mocks" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rhinomocks.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to