public void OnComposed_ProperlyComposed_ShouldSucceed() { var import = new TrivialImporter(); var export = new TrivialExporter(); var part = CreatePart(import); var importDef = part.ImportDefinitions.First(); part.SetImport(importDef, CreateSimpleExports(export)); part.Activate(); Assert.IsTrue(export.done, "OnImportsSatisfied should have been called"); }