public void ToString_WhenCalled_ReturnHtmlString()
        {
            // Arrange
            var odds = "0.78";
            var stake = "1";
            var winloss = "1000";
            var status = "Lose";
            var contentsHtml = new StringBuilder();
            var block = new SystemParlayDetail_Contents_Block();
            block.Odds = odds;
            block.Stake = stake;
            block.Winloss = winloss;
            block.Status = status;

            // Act
            block.ToString(ref contentsHtml);

            // Assert
            var expectedHtml = string.Format(ContentsTemplate, block.WinlossDate.ToString(), block.Match.ToString(), odds, stake, winloss, block.PlayerCommission.ToString(), status);
            Assert.AreEqual(expectedHtml, contentsHtml.ToString());
        }
        public void ToString_BlockIsVisible_ReturnEmptyString()
        {
            // Arrange
            var contentsHtml = new StringBuilder();
            var block = new SystemParlayDetail_Contents_Block();
            block.Visible = false;

            // Act
            block.ToString(ref contentsHtml);

            // Assert
            Assert.IsNullOrEmpty(contentsHtml.ToString());
        }