Imported Upstream version 5.10.0.69

Former-commit-id: fc39669a0b707dd3c063977486506b6793da2890
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-01-29 19:03:06 +00:00
parent d8f8abd549
commit e2950ec768
6283 changed files with 453847 additions and 91879 deletions

View File

@@ -32,6 +32,7 @@ namespace System.Composition.UnitTests
public class ActivationEventOrderingTests : ContainerTests
{
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void OnImportsSatisfiedIsCalledAfterPropertyInjection()
{
var cc = CreateContainer(typeof(TracksImportSatisfaction), typeof(Imported));

View File

@@ -32,6 +32,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void RequestingOneWhereMultipleArePresentFails()
{
var c = CreateContainer(typeof(LogA), typeof(LogB));
@@ -42,6 +43,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void ImportingOneWhereMultipleArePresentFails()
{
var c = CreateContainer(typeof(LogA), typeof(LogB), typeof(UsesLog));

View File

@@ -117,6 +117,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void CanHandleDefinitionCircularity()
{
var cc = CreateContainer(typeof(ACircular), typeof(BLazy));
@@ -126,6 +127,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void CanHandleDefinitionCircularity2()
{
var cc = CreateContainer(typeof(ACircular), typeof(BLazy));
@@ -134,6 +136,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void HandlesPropertyPropertyCircularity()
{
var cc = CreateContainer(typeof(PropertyPropertyA), typeof(PropertyPropertyB));
@@ -142,6 +145,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void HandlesPropertyPropertyCircularityReversed()
{
var cc = CreateContainer(typeof(PropertyPropertyA), typeof(PropertyPropertyB));
@@ -150,6 +154,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void HandlesConstructorPropertyCircularity()
{
var cc = CreateContainer(typeof(ConstructorPropertyA), typeof(ConstructorPropertyB));
@@ -158,6 +163,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void HandlesConstructorPropertyCircularityReversed()
{
var cc = CreateContainer(typeof(ConstructorPropertyA), typeof(ConstructorPropertyB));
@@ -166,6 +172,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void HandlesMetadataCircularity()
{
var cc = CreateContainer(typeof(MetadataCircularityA), typeof(MetadataCircularityB));
@@ -176,6 +183,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void SharedPartCanHaveNonPrereqDependencyOnSelf()
{
var cc = CreateContainer(typeof(NonPrereqSelfDependency));
@@ -184,6 +192,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void PrerequisiteCircularitiesAreDetected()
{
var cc = CreateContainer(typeof(PrDepA), typeof(PrDepB));

View File

@@ -16,6 +16,7 @@ namespace System.Composition.UnitTests
public interface IUnregistered { }
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void GettingAnOptionalExportThatDoesntExistReturnsNull()
{
var c = CreateContainer();

View File

@@ -29,6 +29,7 @@ namespace System.Composition.UnitTests
// This does not test the desired behaviour deterministically,
// but is close enough to be repeatable at least on my machine :)
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void SharedInstancesAreNotVisibleUntilActivationCompletes()
{
var c = CreateContainer(typeof(PausesDuringActivation));

View File

@@ -27,6 +27,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void GenericPartDiscoveryIgnoresAPartAndDoesntThrowAnExceptionWhenItsConstraintOnTypeParameterIsNotAssignableFromTheExportTarget()
{
var container = CreateContainer(typeof(ThingHandler<>), typeof(BookHandler<>));
@@ -38,6 +39,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void GenericPartDiscoveryIncludesAPartWhenItsConstraintOnTypeParameterIsAssignableFromTheExportTarget()
{
var container = CreateContainer(typeof(ThingHandler<>), typeof(BookHandler<>));

View File

@@ -38,6 +38,7 @@ namespace System.Composition.Lightweight.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void SampleServicesCorrectlyImported()
{
var container = new ContainerConfiguration()

View File

@@ -69,6 +69,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void DictionaryImportsKeyedByMetadata()
{
var container = CreateContainer(new[] { typeof(ValueA), typeof(ValueB), typeof(Consumer) });
@@ -81,6 +82,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void DictionaryImportsRecieveMetadataFromNestedAdapters()
{
var container = CreateContainer(new[] { typeof(ValueA), typeof(ValueB), typeof(LazyConsumer) });
@@ -92,6 +94,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void WhenAMetadataKeyIsDuplicatedAnInformativeExceptionIsThrown()
{
var container = CreateContainer(typeof(ValueA), typeof(ValueA), typeof(Consumer));
@@ -100,6 +103,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void WhenAMetadataKeyIsMissingAnInformativeExceptionIsThrown()
{
var container = CreateContainer(typeof(ValueA), typeof(ValueMissing), typeof(Consumer));
@@ -108,6 +112,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void WhenAMetadataValueIsOfTheWrongTypeAnInformativeExceptionIsThrown()
{
var container = CreateContainer(typeof(ValueA), typeof(NonStringValue), typeof(Consumer));
@@ -116,6 +121,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void DictionaryImportsCompatibleWithConventionBuilder()
{
var rb = new ConventionBuilder();

View File

@@ -41,6 +41,7 @@ namespace System.Composition.UnitTests
public class NotDiscoverable { }
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void DiscoversCustomExportAttributes()
{
var container = CreateContainer(typeof(UnfairRule));
@@ -49,6 +50,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void DiscoversCustomExportAttributesUnderConventions()
{
var container = CreateContainer(new ConventionBuilder(), typeof(UnfairRule));
@@ -58,6 +60,7 @@ namespace System.Composition.UnitTests
[Fact]
[ActiveIssue("https://github.com/dotnet/corefx/issues/20656", TargetFrameworkMonikers.UapAot)]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void InstanceExportsOfIncompatibleContractsAreDetected()
{
var x = Assert.Throws<CompositionFailedException>(() => CreateContainer(typeof(IncompatibleRule)));
@@ -66,6 +69,7 @@ namespace System.Composition.UnitTests
[Fact]
[ActiveIssue("https://github.com/dotnet/corefx/issues/20656", TargetFrameworkMonikers.UapAot)]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void PropertyExportsOfIncompatibleContractsAreDetected()
{
var x = Assert.Throws<CompositionFailedException>(() => CreateContainer(typeof(IncompatibleRuleProperty)));
@@ -73,6 +77,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void ANonDiscoverablePartIsIgnored()
{
var container = CreateContainer(typeof(NotDiscoverable));
@@ -88,6 +93,7 @@ namespace System.Composition.UnitTests
public class SpecialCloudBus : CloudBus { }
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void DoesNotDiscoverExportAttributesFromBase()
{
var container = CreateContainer(typeof(SpecialCloudBus));
@@ -108,6 +114,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void SatisfiesImportsAppliedToBase()
{
var container = CreateContainer(typeof(HomeController), typeof(CloudBus));
@@ -126,6 +133,7 @@ namespace System.Composition.UnitTests
[Fact]
[ActiveIssue("https://github.com/dotnet/corefx/issues/20656", TargetFrameworkMonikers.UapAot)]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void MultipleImportAttributesAreDetected()
{
var c = new ContainerConfiguration()

View File

@@ -65,6 +65,7 @@ namespace System.Composition.UnitTests
[Fact]
[ActiveIssue("https://github.com/dotnet/corefx/issues/20656", TargetFrameworkMonikers.UapAot)]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void MissingTopLevelExportMessageIsInformative()
{
var cc = CreateContainer();
@@ -74,6 +75,7 @@ namespace System.Composition.UnitTests
[Fact]
[ActiveIssue("https://github.com/dotnet/corefx/issues/20656", TargetFrameworkMonikers.UapAot)]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void MissingTopLevelNamedExportMessageIsInformative()
{
var cc = CreateContainer();
@@ -82,6 +84,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void MissingDependencyMessageIsInformative()
{
var cc = CreateContainer(typeof(UserOfUnregistered));
@@ -92,6 +95,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void CycleMessageIsInformative()
{
var cc = CreateContainer(typeof(CycleA), typeof(CycleB), typeof(CycleC));
@@ -105,6 +109,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void CardinalityViolationMessageIsInformative()
{
var cc = CreateContainer(typeof(ShouldBeOne), typeof(ButThereIsAnother), typeof(RequiresOnlyOne));

View File

@@ -41,6 +41,7 @@ namespace System.Composition.Lightweight.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void ProvidersCanLocateImplementationsOfAContractItSupports()
{
var container = new ContainerConfiguration()
@@ -53,6 +54,7 @@ namespace System.Composition.Lightweight.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void ProvidersCanDetectAbsenceOfAContractItSupports()
{
var container = new ContainerConfiguration()

View File

@@ -106,6 +106,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void SharedPartsAreSharedBetweenAllScopes()
{
var cc = CreateContainer(typeof(SharedUnbounded), typeof(DataConsistencyBoundaryProvider));
@@ -117,6 +118,7 @@ namespace System.Composition.UnitTests
[Fact]
[ActiveIssue("https://github.com/dotnet/corefx/issues/20656", TargetFrameworkMonikers.UapAot)]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void TheSameSharedInstanceIsReusedWithinItsSharingBoundary()
{
var cc = CreateContainer(typeof(SharedBoundedByDC), typeof(SharedPartConsumer), typeof(DataConsistencyBoundaryProvider));
@@ -130,6 +132,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void NonSharedInstancesCreatedByAnExportFactoryAreControlledByTheirExportLifetimeContext()
{
var cc = CreateContainer(typeof(A), typeof(UseExportFactory));
@@ -142,6 +145,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void DependenciesOfSharedPartsAreResolvedInTheGlobalScope()
{
var cc = new ContainerConfiguration()
@@ -157,6 +161,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void WhenABoundaryIsPresentBoundedPartsCannotBeCreatedOutsideIt()
{
var container = CreateContainer(typeof(DataConsistencyBoundaryProvider), typeof(SharedBoundedByDC));
@@ -164,6 +169,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void TheProductOfAnExportFactoryCanBeDisposedDuringDisposalOfTheParent()
{
var container = new ContainerConfiguration()
@@ -195,6 +201,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void ExportFactoryCanBeComposedWithImportManyAndNames()
{
var cc = CreateContainer(typeof(AConsumer), typeof(A1), typeof(A2));
@@ -228,6 +235,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void WhenReleasingAnExportFromAnExportFactoryItsNonSharedDependenciesAreDisposed()
{
var cc = CreateContainer(typeof(Disposable), typeof(HasDisposableDependency), typeof(HasFactory));

View File

@@ -52,6 +52,7 @@ namespace System.Composition.UnitTests
public class MultipleNames { }
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void DiscoversMetadataSpecifiedUsingMetadataAttributeOnExportAttribute()
{
var cc = CreateContainer(typeof(SingleNamedExport));
@@ -60,6 +61,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void IfMetadataIsSpecifiedOnAnExportAttributeOtherExportsDoNotHaveIt()
{
var cc = CreateContainer(typeof(MultipleExportsOneNamedAndBothPrioritized));
@@ -69,6 +71,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void DiscoversStandaloneExportMetadata()
{
var cc = CreateContainer(typeof(NamedAndPrioritized));
@@ -77,6 +80,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void DiscoversStandaloneExportMetadataUsingMetadataAttributes()
{
var cc = CreateContainer(typeof(NamedWithCustomMetadata));
@@ -85,6 +89,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void StandaloneExportMetadataAppliesToAllExportsOnAMember()
{
var cc = CreateContainer(typeof(MultipleExportsOneNamedAndBothPrioritized));
@@ -94,6 +99,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void MultiplePiecesOfMetadataAreCombinedIntoAnArray()
{
var cc = CreateContainer(typeof(MultipleNames));
@@ -114,6 +120,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void MultipleExportsCanBeRetrievedWhenANonDefaultConstructorExists()
{
var c = CreateContainer(typeof(ConstructorImported), typeof(MultipleExportsNonDefaultConstructor));

View File

@@ -42,6 +42,7 @@ namespace System.Composition.UnitTests
}
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void ImportsMany()
{
var cc = CreateContainer(typeof(A), typeof(A2), typeof(ImportManyIA));
@@ -50,6 +51,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void ImportsManyProperties()
{
var cc = CreateContainer(typeof(A), typeof(A2), typeof(ImportManyPropsOfA));

View File

@@ -49,6 +49,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void CollectionsImportedWithAnOrderingAttributeComeInOrder()
{
var container = CreateExtendedContainer(typeof(HasImportedItems), typeof(Item1), typeof(Item4), typeof(Item2), typeof(Item3));
@@ -62,6 +63,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void IfAnItemIsMissingMetadataAnInformativeExceptionIsThrown()
{
var container = CreateExtendedContainer(typeof(HasImportedItems), typeof(Item1), typeof(ItemWithoutOrder));

View File

@@ -26,6 +26,7 @@ namespace System.Composition.Lightweight.UnitTests
public class Derived : Base { }
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void ClassExportsAreNotInherited()
{
var cc = CreateContainer(typeof(Derived));
@@ -34,6 +35,7 @@ namespace System.Composition.Lightweight.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void PropertyExportsAreNotInherited()
{
var cc = CreateContainer(typeof(Derived));
@@ -45,6 +47,7 @@ namespace System.Composition.Lightweight.UnitTests
public class ExportingDerived : Base { }
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void ExportsAtTheClassLevelAreAppliedIgnoringBaseExports()
{
var cc = CreateContainer(typeof(ExportingDerived));
@@ -85,6 +88,7 @@ namespace System.Composition.Lightweight.UnitTests
public class NonOverridingImporter : BaseImporter { }
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void ImportsOnOverriddenPropertiesOverrideImportsOnTheBase()
{
var c = CreateContainer(typeof(Exporter), typeof(OverridingImporter), typeof(NonOverridingImporter));
@@ -95,6 +99,7 @@ namespace System.Composition.Lightweight.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void LooseImportsOnDerivedPropertiesOverrideImportsOnTheBase()
{
var c = CreateContainer(typeof(Exporter));
@@ -107,6 +112,7 @@ namespace System.Composition.Lightweight.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void ImportsOnBaseAreInherited()
{
var c = CreateContainer(typeof(Exporter), typeof(NonOverridingImporter));
@@ -116,6 +122,7 @@ namespace System.Composition.Lightweight.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void LooseImportsOnBaseAreInherited()
{
var c = CreateContainer(typeof(Exporter));
@@ -131,6 +138,7 @@ namespace System.Composition.Lightweight.UnitTests
public class DiscoverableDerived : NotDiscoverableBase { }
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void PartNotDiscoverableAttributeIsNotInherited()
{
var c = CreateContainer(typeof(DiscoverableDerived));
@@ -145,6 +153,7 @@ namespace System.Composition.Lightweight.UnitTests
public class SharedDerived : SharedBase { }
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void PartMetadataIsNotInherited()
{
var c = CreateContainer(typeof(SharedDerived));
@@ -165,6 +174,7 @@ namespace System.Composition.Lightweight.UnitTests
public class InheritsImportsSatisfied : HasImportsSatisfied { }
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void OnImportsSatisfiedAttributeIsInherited()
{
var c = CreateContainer(typeof(InheritsImportsSatisfied));
@@ -183,6 +193,7 @@ namespace System.Composition.Lightweight.UnitTests
public class ABHandler : AHandler { }
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void MetadataIsOnlyDrawnFromTheTypeToWhichItIsApplied()
{
var c = CreateContainer(typeof(ABHandler));
@@ -204,6 +215,7 @@ namespace System.Composition.Lightweight.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void ExportsOnOverridePropertiesOverrideExportsOnTheBase()
{
var c = CreateContainer(typeof(DerivedOverrideExporter));

View File

@@ -36,6 +36,7 @@ namespace System.Composition.UnitTests
public class Named { public string Name { get; set; } }
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void ComposesLazily()
{
var cc = CreateContainer(typeof(A), typeof(BLazy));
@@ -44,6 +45,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void SupportsExportMetadata()
{
var cc = CreateContainer(typeof(NamedFred));
@@ -52,6 +54,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void ReturnsExportMetadataAsADictionary()
{
var cc = CreateContainer(typeof(NamedFred));
@@ -73,6 +76,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void LazyCanBeComposedWithImportManyAndNames()
{
var cc = CreateContainer(typeof(AConsumer), typeof(A1), typeof(A2));

View File

@@ -54,6 +54,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void CreatesInstanceWithNoDependencies()
{
var cc = CreateContainer(typeof(A));
@@ -62,6 +63,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void DefaultLifetimeIsNonShared()
{
var cc = CreateContainer(typeof(A));
@@ -71,6 +73,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void Composes()
{
var cc = CreateContainer(typeof(A), typeof(B));
@@ -79,6 +82,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void CanSpecifyExportsWithConventionBuilder()
{
var rb = new ConventionBuilder();
@@ -89,6 +93,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void CanSpecifyLifetimeWithConventionBuilder()
{
var rb = new ConventionBuilder();
@@ -100,6 +105,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void InjectsPropertyImports()
{
var rb = new ConventionBuilder();
@@ -110,6 +116,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void VerifyAssemblyNameCanBeUsedWithContainer()
{
var test = new ContainerConfiguration()
@@ -121,6 +128,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void VerifyAssemblyWithTwoBaseTypeWithOnlyOneExportedWorks()
{
var test = new ContainerConfiguration()

View File

@@ -24,6 +24,7 @@ namespace System.Composition.Lightweight.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void SatisfyImportsSetsLooseImportsOnAttributedPart()
{
var container = CreateContainer(typeof(Transaction));

View File

@@ -32,6 +32,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void AnImportMetadataConstraintMatchesMetadataOnTheExport()
{
var cc = CreateContainer(typeof(SomeSetting), typeof(SomeSettingUser));
@@ -40,6 +41,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void AnImportMetadataConstraintMatchesMetadataOnTheExportEvenIfDiscoveryHasCompletedForTheExport()
{
var cc = CreateContainer(typeof(SomeSetting), typeof(SomeSettingUser));
@@ -49,6 +51,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void ImportMetadataConstraintsComposeWithOtherRelationshipTypes()
{
var cc = CreateContainer(typeof(SomeSetting), typeof(ManySettingUser));
@@ -60,6 +63,7 @@ namespace System.Composition.UnitTests
public class SomeSetting<T> { }
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void ConstraintsCanBeAppliedToGenerics()
{
var contract = new CompositionContract(typeof(SomeSetting<string>), null, new Dictionary<string, object>
@@ -83,6 +87,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
public void ItemEqualityIsUsedWhenMatchingMetadataValuesThatAreArrays()
{
var c = CreateContainer(typeof(Presenter), typeof(Controller));

Some files were not shown because too many files have changed in this diff Show More