BetterCms.Test.Module.Root.HelperTests.MessagesHelperTest.Throws_CmsException_If_Controller_Not_Inherits_CmsControllerBase C# (CSharp) Метод

Throws_CmsException_If_Controller_Not_Inherits_CmsControllerBase() приватный Метод

private Throws_CmsException_If_Controller_Not_Inherits_CmsControllerBase ( ) : void
Результат void
        public void Throws_CmsException_If_Controller_Not_Inherits_CmsControllerBase()
        {
            CmsException ex = Assert.Throws<CmsException>(
                () =>
                    {
                        new HtmlHelper(new ViewContext(), new ViewPage()).MessagesBox("bcms-test-id");
                    });

            Assert.IsInstanceOf<NotSupportedException>(ex.InnerException);
        }
    }