public void ToString_BlockIsVisible_ReturnEmptyString() { // Arrange var stakeHtml = string.Empty; var block = new Stake_Template(); block.Visible = false; // Act stakeHtml = block.ToString(); // Assert Assert.IsNullOrEmpty(stakeHtml); }
public void ToString_WhenCalled_ReturnHtmlString() { // Arrange var stake = "10"; var stakeHtml = string.Empty; var block = new Stake_Template(); block.stake = stake; // Act stakeHtml = block.ToString(); // Assert var expectedHtml = string.Format(StakeTemplate, stake); Assert.AreEqual(expectedHtml, stakeHtml); }