예제 #1
0
        public void CheckLastFailNameTest()
        {
            _viewMock.Setup(f => f.SetLastNameEditTextTheme(null));
            _stylesHolderMock.SetupGet(f => f.LastNameStateFail).Returns(It.IsAny <IEditTextTheme>());
            var presenter = new PresenterRegName(_viewMock.Object, _interactorMock.Object, _routerMock.Object, _stylesHolderMock.Object, _regLocaleStrings.Object);

            presenter.SetLastNameState(EState.Fail);

            _viewMock.Verify(f => f.SetLastNameEditTextTheme(null), Times.Once);
        }
예제 #2
0
        public void CheckLastNameStateAnotherTest(EState state)
        {
            var presenter = new PresenterRegName(_viewMock.Object, _interactorMock.Object, _routerMock.Object, _stylesHolderMock.Object, _regLocaleStrings.Object);

            presenter.SetLastNameState(state);
        }