public void SetAvatarTest() { _viewMock.Setup(f => f.SetUserAvatar(It.IsAny <string>())); var presenter = new PresenterCreatePost(_viewMock.Object, _interactorMock.Object, _routerMock.Object, _stylesHolderMock.Object, Localization.Lang); presenter.SetUserAvatar(It.IsAny <string>()); _viewMock.Verify(f => f.SetUserAvatar(It.IsAny <string>()), Times.Once); }