public void FillingAFullCupOverflows() { var cup = new Cup(); cup.Fill(); Assert.Throws <OverflowException>(() => cup.Fill()); Assert.IsTrue(cup.IsEmpty); }
public void AFilledCupIsNotEmpty() { var cup = new Cup(); cup.Fill(); Assert.IsFalse(cup.IsEmpty); }
public void DrinkingFromAFullCupEmptiesIt() { var cup = new Cup(); cup.Fill(); cup.Drink(); Assert.IsTrue(cup.IsEmpty); }