Beispiel #1
0
Datei: Test.cs Projekt: dfr0/moon
		void RunTest ()
		{
			var c = new SelfReferencingControl ();
			WeakControl = c;
			c.AttachToLayoutUpdated ();
			
			GCAndInvoke (() => {
				if (WeakControl != null)
					Fail ("Control should be GC'ed");
				else
					Succeed ();
			});
		}
Beispiel #2
0
        void RunTest()
        {
            var c = new SelfReferencingControl();

            WeakControl = c;
            c.AttachToLayoutUpdated();

            GCAndInvoke(() => {
                if (WeakControl != null)
                {
                    Fail("Control should be GC'ed");
                }
                else
                {
                    Succeed();
                }
            });
        }