public void GrownEvent_Work_Called() { ITree tree = new Tree(Season.Autumn); tree.Grown += (o, e) => wascalled = true; tree.Grow(); Assert.IsTrue(wascalled); }
public void DieEvent_Work_Called() { ITree tree = new Tree(Season.Autumn); tree.Die += (o, e) => wascalled = true; tree.CountOfDays = 0; tree.Grow(); Assert.IsTrue(wascalled); }