public void NoExceptionsShouldBeThrown() { // three sets for three different threads var nodes = new[] { CreateMockNodes(), CreateMockNodes(), CreateMockNodes() }; var roundRobin = new RoundRobinStrategy(); roundRobin.Initialise(nodes.SelectMany(n => n)); var results = new Exception[3]; Parallel.For(0, 3, i => { results[i] = DoStuffWithNodes(roundRobin, CreateMockNodes()); }); foreach (var result in results) { Assert.IsNull(result); } }