public void RenderAlertMessageContainerWithValidArgument_ReturnsExpected()
        {
            String expected = "<div id=\"messageArea\"></div>";
            String actual = String.Empty;
            HtmlHelper instance = new MockHtmlHelper();
            
            actual = HtmlHelperExtensions.RenderAlertMessageContainer(instance);

            Assert.AreEqual(expected, actual);
        }
        public void RenderAlertMessagesFromQueueWithValidArgumentAndNoMessage_ReturnsExpected()
        {
            String expected = "\r\n\r\n";
            String actual = String.Empty;
            HtmlHelper instance = new MockHtmlHelper();
            instance.ViewContext.Controller = new MockController();

            actual = HtmlHelperExtensions.RenderAlertMessagesFromQueue(instance);

            Assert.AreEqual(expected, actual);
        }
        public void RenderAlertMessagesFromQueueWithValidArgumentAndValidMessage_ReturnsExpected()
        {
            String expected = "\r\n<script>$().ready(function () { addAlertToMessageArea(0, 'No message set.',0,1); });</script>\r\n\r\n";
            String actual = String.Empty;
            Controller controller = new MockController();
            AlertManager.AppendAlert(controller, new AlertDetail());
            HtmlHelper instance = new MockHtmlHelper();
            instance.ViewContext.Controller = controller;

            actual = HtmlHelperExtensions.RenderAlertMessagesFromQueue(instance);

            Assert.AreEqual(expected, actual);
        }