private void AssertCanMockMethodWithOutParamWithDefinedValue(IGenericOutParamInterface someClass) { var myList = new List<string>(); Expect.Once.On(someClass).Message("SomeMethod").With("test", Is.Out).Will( Return.Value(false), new SetNamedParameterAction("vals_out", myList) ); bool ret = someClass.SomeMethod("test", out myList); }
private void AssertCanMockMethodWithOutParam(IGenericOutParamInterface someClass) { Expect.Once.On(someClass).Message("SomeMethod").Will(Return.Value(true)); var myList = new List<string>(); someClass.SomeMethod("test", out myList); }