Ejemplo n.º 1
0
        public void ContextualHelpPresenterConstructorTest()
        {
            IContextualHelpView     view   = new MockContextualHelpView();
            ContextualHelpPresenter target = new ContextualHelpPresenter(view);

            Assert.IsNotNull(target);
        }
Ejemplo n.º 2
0
        public void SetContentTest()
        {
            MockContextualHelpView  view   = new MockContextualHelpView();
            ContextualHelpPresenter target = new ContextualHelpPresenter(view);
            string pageUrl = "/unittest";

            target.SetContent(pageUrl);
            string expected = "Test Data";

            Assert.AreEqual(expected, view.Content);
        }