Exemple #1
0
        public void DeleteLastPatient_RaiseLastItemRemoved()
        {
            card.Open(p[3]);
            bool removed           = false;
            var  LastItemRemovedEh = (EventHandler)((s, e) =>
            {
                removed = true;
            });

            card.LastItemRemoved += LastItemRemovedEh;

            card.DeleteHolder(p[3]);

            Assert.AreEqual(null, card.Navigator.Current);
            Assert.IsTrue(removed);
            card.LastItemRemoved -= LastItemRemovedEh;
        }