示例#1
0
        public void testObservable()
        {
            // Testing observability of quotes

            SimpleQuote me = new SimpleQuote(0.0);
            Flag        f  = new Flag();

            me.registerWith(f.update);
            me.setValue(3.14);

            if (!f.isUp())
            {
                QAssert.Fail("Observer was not notified of quote change");
            }
        }