public void CommandBinding_InParallel_Exception() { // Arrange var actual = false; var container = new CommandContainerTest(); var key = typeof(object); var binder = new CommandBinding(container, key, null, null); // Act try { binder.InParallel(); } catch (InvalidOperationException) { actual = true; } // Assert Assert.IsTrue(actual); }