Ejemplo n.º 1
0
 public void CtorNullLocaleTest()
 {
     Assert.Throws <ArgumentNullException>(() =>
     {
         _presenter = new PresenterToolBarPosts(_viewMock.Object, _routerMock.Object, _styleHolder.Object, null);
     });
 }
Ejemplo n.º 2
0
 public void CtorNullRouterTest()
 {
     Assert.Throws <ArgumentNullException>(() =>
     {
         _presenter = new PresenterToolBarPosts(_viewMock.Object, null, _styleHolder.Object, Localization.Lang);
     });
 }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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());
        }