Exemple #1
0
        public void DrinkingFromAnEmptyCupHasNoEffect()
        {
            var cup = new Cup();

            Assert.DoesNotThrow(() => cup.Drink());
            Assert.IsTrue(cup.IsEmpty);
        }
Exemple #2
0
        public void DrinkingFromAFullCupEmptiesIt()
        {
            var cup = new Cup();

            cup.Fill();
            cup.Drink();
            Assert.IsTrue(cup.IsEmpty);
        }