public override void Context() { base.Context(); _callFormatter = mock <IMethodInfoFormatter>(); _callFormatter .stub(x => x.Format(_methodInfoSpecified, new[] { _firstArgSpec.ToString(), _secondArgSpec.ToString() })) .Return(FormattedCallSpec); }
public override void Context() { base.Context(); _firstArgSpec.stub(x => x.FormatArgument(firstArg)).Return("first"); _secondArgSpec.stub(x => x.FormatArgument(secondArg)).Return("second"); _callFormatter = mock <IMethodInfoFormatter>(); _callFormatter .stub(x => x.Format(_methodInfoSpecified, new[] { "first", "second" })) .Return(FormattedCall); }