public void CallingGetExportsWithActionStringShouldReturnExportedMethod()
 {
     var provider = new FunctionExportProvider(Assembly.GetExecutingAssembly(), typeof (Action<string>));
     var action = provider.GetExportedValue<Action<string>>();
     Assert.AreEqual("ExportedMethod", action.Method.Name);
     Assert.AreEqual(typeof(ExportingStub), action.Method.DeclaringType);
 }
 public void CallingExportedMethodShouldSetWasCalledToTrue()
 {
     var provider = new FunctionExportProvider(Assembly.GetExecutingAssembly(), typeof(Action<string>));
     var action = provider.GetExportedValue<Action<string>>();
     action("");
     Assert.IsTrue(ExportingStub.WasCalled);
 }
 public void CreatingProviderWithANonDelegateTypeShouldThrowArgumentException()
 {
     var provider = new FunctionExportProvider(Assembly.GetExecutingAssembly(), typeof(ExportingStub));
 }