Exemplo n.º 1
0
        public void RenderContentsTest()
        {
            IdentifierLabel target = new IdentifierLabel();

            NhsCui.Toolkit.Web.Test.NhsCui_Toolkit_Web_IdentifierLabelAccessor accessor = new NhsCui.Toolkit.Web.Test.NhsCui_Toolkit_Web_IdentifierLabelAccessor(target);

            StringBuilder  testString = new StringBuilder();
            HtmlTextWriter writer     = new HtmlTextWriter(new StringWriter(testString));

            accessor.RenderContents(writer);

            // rendered contents of the identifier label without an identifier
            // being set should be an empty string
            Assert.AreEqual <string>(string.Empty, testString.ToString());
        }
Exemplo n.º 2
0
        public void RenderContentsTest()
        {
            IdentifierLabel target = new IdentifierLabel();

            NhsCui.Toolkit.Web.Test.NhsCui_Toolkit_Web_IdentifierLabelAccessor accessor = new NhsCui.Toolkit.Web.Test.NhsCui_Toolkit_Web_IdentifierLabelAccessor(target);

            StringBuilder testString = new StringBuilder();
            HtmlTextWriter writer = new HtmlTextWriter(new StringWriter(testString));

            accessor.RenderContents(writer);

            // rendered contents of the identifier label without an identifier
            // being set should be an empty string
            Assert.AreEqual<string>(string.Empty, testString.ToString());
        }