Beispiel #1
0
        public void Collections_ObservableHashSet_test()
        {
            OrderHashSetObserver      o  = new OrderHashSetObserver();
            ObservableHashSet <Order> hs = new ObservableHashSet <Order>();

            hs.RegisterObserver(o);

            Assert.AreEqual(0, o.Count);
            hs.Add(new Order());

            Assert.AreEqual(1, o.Count);
        }