public void SetUserNameTest() { _viewMock.Setup(f => f.SetUserName(It.IsAny <string>())); _viewMock.Setup(f => f.SetCommentLocale(It.IsAny <string>())); _interactorMock.SetupGet(f => f.GetRepository().LangCreatePost.EnterCommentLabel).Returns(It.IsAny <string>()); var presenter = new PresenterCreatePost(_viewMock.Object, _interactorMock.Object, _routerMock.Object, _stylesHolderMock.Object, Localization.Lang); presenter.SetUserName(It.IsAny <string>()); _viewMock.Verify(f => f.SetUserName(It.IsAny <string>()), Times.Once); }