假设我在(NMock)中模拟了以下界面。我如何查看那个 email.Subject = 'xyz' ?
目前我正在做类似的事情
IEmailService s = mocks.NewMock<IEmailService>();
Expect.Once.On(s).Method("Send").With(?????)
s.Send(new Email { Subject = 'rarr' });
mocks.Verify...();
interface EmailService { void SendEmail(Email email); }