コード例 #1
0
        public void emptied_Cup_cannot_be_emptied_again()
        {
            var c = new Cup();

            c.Fill();
            c.Empty();
            c.Empty();
        }
コード例 #2
0
        public void emptied_Cup_is_empty()
        {
            var c = new Cup();

            c.Fill();
            c.Empty();
            Assert.AreEqual(0, c.Quantity);
        }
コード例 #3
0
        public void Empty_post_Drink_empties_the_Cup()
        {
            var c = new Cup();

            c.Fill();
            c.Drink(4, new Person());
            c.Empty();
            Assert.AreEqual(0, c.Quantity);
        }
コード例 #4
0
        public void another_person_cannot_Drink_from_the_same_Cup_even_if_emptied()
        {
            var c = new Cup();

            c.Fill();
            c.Drink(4, new Person());
            c.Empty();
            c.Fill();
            c.Drink(3, new Person());
        }
コード例 #5
0
        public void empty_Cup_cannot_be_emptied()
        {
            var c = new Cup();

            c.Empty();
        }