Пример #1
0
        public void CheckNameStateFailTest()
        {
            _viewMock.Setup(f => f.SetEmailEditTextTheme(null));
            _stylesHolderMock.SetupGet(f => f.EmailStateFail).Returns(It.IsAny <IEditTextTheme>());
            var presenter = new PresenterRegEmail(_viewMock.Object, _interactorMock.Object, _routerMock.Object, _stylesHolderMock.Object, _regLocaleStrings.Object);

            presenter.SetEmailState(EState.Fail);

            _viewMock.Verify(f => f.SetEmailEditTextTheme(null), Times.Once);
        }
Пример #2
0
        public void CheckNameStateAnotherTest(EState state)
        {
            var presenter = new PresenterRegEmail(_viewMock.Object, _interactorMock.Object, _routerMock.Object, _stylesHolderMock.Object, _regLocaleStrings.Object);

            presenter.SetEmailState(state);
        }