예제 #1
0
        public void Cannot_drink_2_consecutive_times()
        {
            var cup = new Cup();

            cup.Fill();
            cup.Drink();
            cup.Drink();
        }
예제 #2
0
        public void A_drunk_cup_is_empty()
        {
            var cup = new Cup();

            cup.Fill();
            cup.Drink();

            Assert.IsFalse(cup.IsFull);
        }
예제 #3
0
        public void Can_do_multiple_fill_drink_cicles()
        {
            var cup = new Cup();

            int iterations = 10000;

            for (int i = 0; i < iterations; i++)
            {
                cup.Fill();
                cup.Drink();
            }

            Assert.IsFalse(cup.IsFull);
        }
예제 #4
0
        public void Cannot_drink_from_an_empty_cup()
        {
            var cup = new Cup();

            cup.Drink();
        }