public void Invalid_when_executing_plugin_with_unknown_constructors() { var testEvent = new TestEvent(); var ex = Assert.Throws <ArgumentException>(() => testEvent.ExecutePlugin <InvalidPlugin>(new OrganizationRequest())); Assert.Equal("The plugin does not have constructor for passing in two configuration strings or constructor without arguments.", ex.Message); }