Esempio n. 1
0
			public void TestException()
			{
				var q = new ThreadActionQueue();
				Assert.Throws<Exception>(() =>
										 q.Enqueue(() => { throw new Exception("test message"); }));
				Assert.DoesNotThrow(() => q.Enqueue(() => new int()));
			}
Esempio n. 2
0
            public void TestException()
            {
                var q = new ThreadActionQueue();

                Assert.Throws <Exception>(() =>
                                          q.Enqueue(() => { throw new Exception("test message"); }));
                Assert.DoesNotThrow(() => q.Enqueue(() => new int()));
            }