public void ToString_BlockIsVisible_ReturnEmptyString()
        {
            // Arrange
            var statusHtml = new StringBuilder();
            var block = new Status_ShowIP_Block();
            block.Visible = false;

            // Act
            block.ToString(ref statusHtml);

            // Assert
            Assert.IsNullOrEmpty(statusHtml.ToString());
        }
        public void ToString_WhenCalled_ReturnHtmlStringDefaultValue()
        {
            // Arrange
            var ipLink = "iplink";
            var openIpFunc = "OpenIPInfo";
            var betIp = "{betIp}";
            var statusHtml = new StringBuilder();
            var block = new Status_ShowIP_Block();

            // Act
            block.ToString(ref statusHtml);

            // Assert
            var expectedHtml = string.Format(StatusTemplate, ipLink, openIpFunc, betIp, betIp);
            Assert.AreEqual(expectedHtml, statusHtml.ToString());
        }
        public void ToString_WhenCalled_ReturnHtmlString()
        {
            // Arrange
            var ipLink = "iplink-Customize";
            var openIpFunc = "OpenIPInfo-Customize";
            var betIp = "{betIp}-Customize";
            var statusHtml = new StringBuilder();
            var block = new Status_ShowIP_Block();
            block.divIP = ipLink;
            block.openIpFunc = openIpFunc;
            block.betIp = betIp;

            // Act
            block.ToString(ref statusHtml);

            // Assert
            var expectedHtml = string.Format(StatusTemplate, ipLink, openIpFunc, betIp, betIp);
            Assert.AreEqual(expectedHtml, statusHtml.ToString());
        }