Not able to create stubs

i am not able to create stubs using nmock3 framework. using a code like : Mockfactory factory = new Mockfactory (); Stub<Calculation> _stub = factory.createstub<Calculation>(); in the second line...

Id #11879 | Release: None | Updated: Sep 22, 2014 at 12:01 PM by shubham_bhadauria | Created: Sep 22, 2014 at 11:59 AM by shubham_bhadauria

I am not able to use lamda expressions inside the Expects.MethodWith

I am not able to use lamda expressions inside the Expects.MethodWith . If i am passing the lamda expressions it is always throwing exception. Ex : Expect.On(this.shedulerAppService) .AtLea...

Id #11671 | Release: None | Updated: Apr 16, 2014 at 5:15 AM by kk_karthikumar | Created: Apr 16, 2014 at 5:15 AM by kk_karthikumar

DelegateReturnAction doesn't seem to invoke the delegate correctly

In DelegateReturnAction.cs void IAction.Invoke(Invocation invocation) { if (_invokeFunc != null) invocation.Result = _invokeFunc(invocation); else invocation.Result = _func;...

Id #11570 | Release: None | Updated: Mar 24, 2014 at 8:59 AM by sockenfresser | Created: Feb 11, 2014 at 7:17 PM by wawang

MockStyle.Transparent not working as expected

When a Mock is created with mockStyle = MockStyle.Transparent, the underlying implementation is executed even when an Expect or Stub statement is used to override certain functions or properties. ...

Id #10152 | Release: None | Updated: Jun 14, 2013 at 8:22 AM by pwolfe | Created: May 9, 2012 at 12:30 AM by brianFaires

Expects.Exactly(int) doesn't work as expected

I believe there is an issue with the Expects.Exactly(int) functionality. The code appears to check that the actual number of calls does not exceed the number of expected calls. Consider the follo...

Id #8190 | Release: None | Updated: Feb 22, 2013 at 12:12 AM by pwolfe | Created: Mar 2, 2011 at 6:23 PM by sgmeyer

  • 1-5 of 5 Work Items
    • Previous
    • 1
    • Next
    • Showing
    • All
    • Work Items