Beispiel #1
0
        public void CancelNotify()
        {
            var obs = new Observable();
            var i   = 0;

            obs += () => i++;

            obs += () =>
            {
                i++;
                obs.CancelNotify();
            };

            obs += () => i++;

            obs.Notify();


            Assert.AreEqual(2, i);
        }