Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
 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();
 }