예제 #1
0
        public void HighestAmountLostEquals50()
        {
            //Arrange
            decimal highestAmount;
            decimal expected = 50m;

            //Act
            highestAmount = ListEnquirer.GetHighestAmountLost(dummyData);

            //Assert
            Assert.AreEqual(expected, highestAmount);
        }
예제 #2
0
        public void AddingA1000LostBetChangesHighestAmountLostTo1000()
        {
            //Arrange

            decimal  highestAmount;
            decimal  expected = 1000m;
            HorseTip testAdd1 = new HorseTip("Holy Magoly", RaceCourses.Ayr, new DateTime(2016, 12, 02), 1000.00m, false);

            dummyData.Add(testAdd1);

            //Act
            highestAmount = ListEnquirer.GetHighestAmountLost(dummyData);

            //Assert
            Assert.AreEqual(expected, highestAmount);

            //Revert
            dummyData.Remove(testAdd1);
        }