Index: test/Common/DelftTools.Utils.Tests/Aop/InvokeRequiredAttributeTest.cs =================================================================== diff -u -r8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9 -r5fc71a385897af92ccb092f2f969b5709afab85a --- test/Common/DelftTools.Utils.Tests/Aop/InvokeRequiredAttributeTest.cs (.../InvokeRequiredAttributeTest.cs) (revision 8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9) +++ test/Common/DelftTools.Utils.Tests/Aop/InvokeRequiredAttributeTest.cs (.../InvokeRequiredAttributeTest.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a) @@ -35,16 +35,20 @@ // call from another thread var thread = new Thread(() => + { + // 10 normal calls + for (int i = 0; i < 10; i++) { - // 10 normal calls - for(int i = 0; i < 10;i++) - testClass.SynchronizedMethod(); - // dispose (from wrong thread..but ok) - testClass.Dispose(); - // subsequent calls are skipped: - for (int i = 0; i < 10; i++) - testClass.SynchronizedMethod(); - }); + testClass.SynchronizedMethod(); + } + // dispose (from wrong thread..but ok) + testClass.Dispose(); + // subsequent calls are skipped: + for (int i = 0; i < 10; i++) + { + testClass.SynchronizedMethod(); + } + }); thread.Start(); thread.Join();