[RhinoMocks] Re: Set only properties

2009-01-25 Thread ssteinegger
Or m_contactPresenter.ContactAdapter .AssertWasCalled(a => a.Names = Arg.Is.Anything); Of course the generic type of Arg needs to correspond to your property's type. On 19 Jan., 22:03, Colin Desmond wrote: > Excellent, thank you Phil. > > Colin > > On Jan 19, 3:52 pm, Phil wrote: > > > try:

[RhinoMocks] Re: Set only properties

2009-01-19 Thread Colin Desmond
Excellent, thank you Phil. Colin On Jan 19, 3:52 pm, Phil wrote: > try: m_contactPresenter.ContactAdapter.AssertWasCalled(a => a.Names = > null); > > On Jan 19, 3:03 am, Colin Desmond > wrote: > > > In the fluent syntax is it possible to test whether a set only > > property (not get method def

[RhinoMocks] Re: Set only properties

2009-01-19 Thread Phil
try: m_contactPresenter.ContactAdapter.AssertWasCalled(a => a.Names = null); On Jan 19, 3:03 am, Colin Desmond wrote: > In the fluent syntax is it possible to test whether a set only > property (not get method defined) is called. I am not too bothered > about the parameters being passed. > > So