Пример #1
0
        public void RemoveLemonShouldRemoveLemon()
        {
            Tyrannotea tea = new Tyrannotea();

            tea.AddLemon();
            tea.RemoveLemon();
            Assert.False(tea.Lemon);
        }
Пример #2
0
        public void RemoveLemonShouldNotifyOfPropertyChanged(string propertyName)
        {
            Tyrannotea tea = new Tyrannotea();

            Assert.PropertyChanged(tea, propertyName, () =>
            {
                tea.RemoveLemon();
            });
        }