diff options
Diffstat (limited to 'Test/UnitTests/TestMultithreading.cs')
-rw-r--r-- | Test/UnitTests/TestMultithreading.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Test/UnitTests/TestMultithreading.cs b/Test/UnitTests/TestMultithreading.cs index 646cdef..64a560a 100644 --- a/Test/UnitTests/TestMultithreading.cs +++ b/Test/UnitTests/TestMultithreading.cs @@ -7,6 +7,7 @@ using SimpleApp; using System.Threading; using System.Diagnostics; using System.Linq; +using System.Collections.Generic; namespace UnitTests { @@ -62,6 +63,7 @@ namespace UnitTests testData.StartThreads ((index, data) => { while (!data.Stopped) { + LoadAll(AddinManager.GetExtensionNodes<ItemSetNode>("/SimpleApp/ItemTree")); var writers = AddinManager.GetExtensionObjects<IWriter> ("/SimpleApp/Writers"); testData.Counters [index] = writers.Length; } @@ -87,6 +89,12 @@ namespace UnitTests } } + void LoadAll(IEnumerable<ExtensionNode> nodes) + { + foreach (var n in nodes.OfType<ItemSetNode>()) + LoadAll(n.GetChildNodes()); + } + [Test] public void EventsMultithread() { |