public void ContractTypeAndNullNameAreProperlySetTest()
 {
     var exportDefinition = new FactoryExportDefinition(typeof(IComponent), null, ep => null);
     Assert.That(exportDefinition.ContractType, Is.EqualTo(typeof(IComponent)));
     Assert.That(exportDefinition.RegistrationName, Is.Null);
     Assert.That(exportDefinition.ContractName, Is.EqualTo("MefContrib.Tests.Hosting.FactoryExportDefinitionTests+IComponent"));
 }
 public void ContractTypeAndExplicitNameAreProperlySetTest()
 {
     var exportDefinition = new FactoryExportDefinition(typeof(IComponent), "ContractName", ep => null);
     Assert.That(exportDefinition.ContractType, Is.EqualTo(typeof(IComponent)));
     Assert.That(exportDefinition.RegistrationName, Is.EqualTo("ContractName"));
     Assert.That(exportDefinition.ContractName, Is.EqualTo("ContractName"));
 }