public void CanPassNullAndThrowsException() { //arrange ICategory fullHouse = new FullHouseCategory(); //act //assert Assert.Throws <ArgumentNullException>(() => fullHouse.CalculateScore(null)); }
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)); }