Beispiel #1
0
        public void CanPassNullAndThrowsException()
        {
            //arrange
            ICategory fullHouse = new FullHouseCategory();

            //act
            //assert
            Assert.Throws <ArgumentNullException>(() => fullHouse.CalculateScore(null));
        }
Beispiel #2
0
        public void ReturnsSumWhereThereIsAFullHouse()
        {
            //arrange
            ICategory  fullHouse   = new FullHouseCategory();
            List <int> diceNumbers = new List <int>()
            {
                2, 2, 2, 1, 1
            };

            //act
            //assert
            Assert.AreEqual(8, fullHouse.CalculateScore(diceNumbers));
        }