Example #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()));
			}
Example #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()));
            }