public void Undo_Test_입력했던_파라미터가_Null인_경우__Exception을_발생시키는가() { MockRepository mocks = new MockRepository(); UserInfo data = null; ICommandListener mockCommandListener = mocks.DynamicMock <UserAuthController>(); MakeAuth MakeUserCommand = new MakeAuth(data, mockCommandListener); using (mocks.Record()) { mockCommandListener.Delete(data); } MakeUserCommand.Undo(); }
public void Undo_Test_입력했던_파라미터_기록이_남아있는_경우() { MockRepository mocks = new MockRepository(); UserInfo data = mocks.Stub <UserInfo>(); data.id = "id"; data.password = "******"; data.userAuth = "userAuth"; ICommandListener mockCommandListener = mocks.DynamicMock <UserAuthController>(); MakeAuth MakeUserCommand = new MakeAuth(data, mockCommandListener); using (mocks.Record()) { mockCommandListener.Delete(data); } MakeUserCommand.Undo(); mocks.Verify(mockCommandListener); }
public void Undo_Test_입력했던_파라미터_기록이_남아있는_경우() { MockRepository mocks = new MockRepository(); UserInfo data = mocks.Stub<UserInfo>(); data.id = "id"; data.password = "******"; data.userAuth = "userAuth"; ICommandListener mockCommandListener = mocks.DynamicMock<UserAuthController>(); MakeAuth MakeUserCommand = new MakeAuth(data, mockCommandListener); using (mocks.Record()) { mockCommandListener.Delete(data); } MakeUserCommand.Undo(); mocks.Verify(mockCommandListener); }
public void Undo_Test_입력했던_파라미터가_Null인_경우__Exception을_발생시키는가() { MockRepository mocks = new MockRepository(); UserInfo data = null; ICommandListener mockCommandListener = mocks.DynamicMock<UserAuthController>(); MakeAuth MakeUserCommand = new MakeAuth(data, mockCommandListener); using (mocks.Record()) { mockCommandListener.Delete(data); } MakeUserCommand.Undo(); }