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); }
public void CheckLastNameStateAnotherTest(EState state) { var presenter = new PresenterRegName(_viewMock.Object, _interactorMock.Object, _routerMock.Object, _stylesHolderMock.Object, _regLocaleStrings.Object); presenter.SetLastNameState(state); }