Ejemplo n.º 1
0
        public void PrintNoDataWhenListIsEmpty()
        {
            //Arrange
            string          dummyData;
            List <HorseTip> emptyTips = new List <HorseTip>();

            //Act
            dummyData = ListEnquirer.GetHighestAmountsWonAndLost(emptyTips);
            //Arrange
            Assert.IsTrue(dummyData.Equals("No data to display."));
        }
Ejemplo n.º 2
0
        public void GetHighestAmountsWonAndLostDisplaysARecordOfTheHighestAmountsWon525_74AndLost50()
        {
            //Arrange
            decimal expectedHighestWon  = 525.74m;
            decimal expectedHighestLost = 50;

            //Act
            string highestWonAndLost = ListEnquirer.GetHighestAmountsWonAndLost(dummyData);

            //Assert
            Assert.IsTrue(highestWonAndLost.Equals(GetRecordOfHighestWonAndLostStringFormat(expectedHighestWon, expectedHighestLost)));
        }
Ejemplo n.º 3
0
 private void btnHighestAmountBet_Click(object sender, EventArgs e)
 {
     MessageBox.Show(ListEnquirer.GetHighestAmountsWonAndLost(HotTips.horseTips), "Highest Amounts Won/Lost");
 }