Пример #1
0
        public void A_filled_cup_is_full()
        {
            var cup = new Cup();
            cup.Fill();

            Assert.IsTrue(cup.IsFull);
        }
Пример #2
0
 public void Cannot_drink_2_consecutive_times()
 {
     var cup = new Cup();
     cup.Fill();
     cup.Drink();
     cup.Drink();
 }
Пример #3
0
        public void A_drunk_cup_is_empty()
        {
            var cup = new Cup();
            cup.Fill();
            cup.Drink();

            Assert.IsFalse(cup.IsFull);
        }
Пример #4
0
        public void Can_do_multiple_fill_drink_cicles()
        {
            var cup = new Cup();

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

            Assert.IsFalse(cup.IsFull);
        }
Пример #5
0
 public void Cannot_fill_2_consecutive_times()
 {
     var cup = new Cup();
     cup.Fill();
     cup.Fill();
 }