public void Constructor1_AttributedComposablePartDefintion_ShouldProduceValidObject() { var definition = PartDefinitionFactory.CreateAttributed(typeof(MyExport)); var part = new ReflectionComposablePart(definition); Assert.Equal(definition, part.Definition); Assert.NotNull(part.Metadata); Assert.False(part is IDisposable); }
public void Constructor1_Object_ShouldProduceValidObject() { var part = new ReflectionComposablePart(PartDefinitionFactory.CreateAttributed(typeof(MyExport)), new MyExport()); }