コード例 #1
0
 public void Dishwasher_reports_clean_if_only_clean_items_are_added()
 {
     Dishwasher washer = new Dishwasher();
     washer.Load(new Fork());
     washer.Load(new Spoon());
     Assert.IsTrue(washer.ContentsAreClean());
 }
コード例 #2
0
        public void Contents_of_an_emptied_dishwasher_are_always_clean()
        {
            var fork = new Fork();
            var spoon = new Spoon();
            var glass = new Glass();

            Avatar avatar = new Avatar();
            avatar.PickUp(fork);
            avatar.PickUp(spoon);
            avatar.PickUp(glass);

            Dishwasher washer = new Dishwasher();
            washer.Load(fork);
            washer.Load(spoon);
            washer.Load(glass);
            washer.TakeEverythingOut();
            Assert.IsTrue(washer.ContentsAreClean());
        }
コード例 #3
0
 public void Contents_of_a_new_dishwasher_are_always_clean()
 {
     Dishwasher washer = new Dishwasher();
     Assert.IsTrue(washer.ContentsAreClean());
 }