Exemple #1
0
 public void UpdateList()
 {
     foreach (var bet in HorseTipDataValidator.HandleNullHorseTipList(HotTips.horseTips))
     {
         rtbDisplay.AppendText(bet.ToString());
     }
 }
Exemple #2
0
        public void NullHorseTipsListReturnsEmptyInstead()
        {
            //Arrange
            List <HorseTip> horseTips = null;

            //Act
            horseTips = HorseTipDataValidator.HandleNullHorseTipList(horseTips);
            //Assert
            Assert.IsNotNull(horseTips);
            Assert.IsTrue(horseTips.Count == 0);
        }