public void CallsListWithZeroArgs() { var command = new UsesList(); var args = Args(); _mocks.ClassUnderTest.Run(command, args); Assert.AreEqual(1, command.Calls.Count, "number of calls to the command"); Assert.AreEqual(TestCommandBase.Form.List, command.Calls[0].Form, "form of the call"); Assert.AreSame(args, command.Calls[0].Args, "arguments to the call"); }
public void CallsListWithZeroArgs() { var command = new UsesList(); var args = Args(); _mocks.ClassUnderTest.Run(command, args); Assert.Equal(1, command.Calls.Count); Assert.Equal(TestCommandBase.Form.List, command.Calls[0].Form); Assert.Same(args, command.Calls[0].Args); }