public void CtorNullLocaleTest() { Assert.Throws <ArgumentNullException>(() => { _presenter = new PresenterToolBarPosts(_viewMock.Object, _routerMock.Object, _styleHolder.Object, null); }); }
public void CtorNullRouterTest() { Assert.Throws <ArgumentNullException>(() => { _presenter = new PresenterToolBarPosts(_viewMock.Object, null, _styleHolder.Object, Localization.Lang); }); }
public void CtorSuccessTest() { _viewMock.SetupSet(f => f.Presenter = It.IsAny <IPresenterToolBarPosts>()); _presenter = new PresenterToolBarPosts(_viewMock.Object, _routerMock.Object, _styleHolder.Object, Localization.Lang); _viewMock.VerifySet(f => f.Presenter = It.IsAny <IPresenterToolBarPosts>(), Times.Once); }
public void MoreOptionsClickTest() { _viewMock.SetupSet(f => f.Presenter = It.IsAny <IPresenterToolBarPosts>()); _routerMock.Setup(f => f.GoToMoreOptions()); _presenter = new PresenterToolBarPosts(_viewMock.Object, _routerMock.Object, _styleHolder.Object, Localization.Lang); _presenter.MoreClick(); _routerMock.Verify(f => f.GoToMoreOptions(), Times.Once()); }