Ok, i end up looking at the code further found this as the answer: view.Expect( v=> v.Render(Arg<ViewContexts>.Matches(c => ( c & ViewContexts.View2) == ViewContexts.View2)));
That seems to do the trick. Roman. On Apr 1, 5:21 pm, rroman81 <[email protected]> wrote: > Hey guys, > I am trying out the AAA syntax for Rhino. > I have the following: > [flags] > public enum ViewContexts { > View1 = 0x1, > view2 = 0x2, > view3 = 0x4} > > and then later expectation on a mock > > view.Expect(v => v.Render(ViewContexts.View1 | ViewContexts.View2)); > > What if i just want to only expect either View1 or View2 as the > argument. Could you point me to the right API overload to achieve > that? > > thanks, > > Roman. -- You received this message because you are subscribed to the Google Groups "Rhino.Mocks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rhinomocks?hl=en.
