Imported Upstream version 5.4.0.167

Former-commit-id: 5624ac747d633e885131e8349322922b6a59baaa
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2017-08-21 15:34:15 +00:00
parent e49d6f06c0
commit 536cd135cc
12856 changed files with 563812 additions and 223249 deletions

View File

@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\dir.props" />
<PropertyGroup>
<PackageVersion>1.1.0</PackageVersion>
<AssemblyVersion>1.0.32.0</AssemblyVersion>
<PackageVersion>1.2.0</PackageVersion>
<AssemblyVersion>1.0.33.0</AssemblyVersion>
</PropertyGroup>
</Project>
</Project>

View File

@@ -68,6 +68,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue("https://github.com/dotnet/corefx/issues/20656", TargetFrameworkMonikers.UapAot)]
public void FormattingTheContractPrintsConstraintKeysAndValues()
{
var mcd = new CompositionContract(typeof(AType), null, new Dictionary<string, object> { { "A", 1 }, { "B", "C" } });
@@ -76,6 +77,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue("https://github.com/dotnet/corefx/issues/20656", TargetFrameworkMonikers.UapAot)]
public void FormattingTheContractPrintsNameAndDiscriminator()
{
var mcd = new CompositionContract(typeof(AType), "inner", new Dictionary<string, object> { { "A", 1 } });

View File

@@ -57,6 +57,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue("https://github.com/dotnet/corefx/issues/20656", TargetFrameworkMonikers.UapAot)]
public void InstanceExportsOfIncompatibleContractsAreDetected()
{
var x = Assert.Throws<CompositionFailedException>(() => CreateContainer(typeof(IncompatibleRule)));
@@ -64,6 +65,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue("https://github.com/dotnet/corefx/issues/20656", TargetFrameworkMonikers.UapAot)]
public void PropertyExportsOfIncompatibleContractsAreDetected()
{
var x = Assert.Throws<CompositionFailedException>(() => CreateContainer(typeof(IncompatibleRuleProperty)));
@@ -123,6 +125,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue("https://github.com/dotnet/corefx/issues/20656", TargetFrameworkMonikers.UapAot)]
public void MultipleImportAttributesAreDetected()
{
var c = new ContainerConfiguration()

View File

@@ -64,6 +64,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue("https://github.com/dotnet/corefx/issues/20656", TargetFrameworkMonikers.UapAot)]
public void MissingTopLevelExportMessageIsInformative()
{
var cc = CreateContainer();
@@ -72,6 +73,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue("https://github.com/dotnet/corefx/issues/20656", TargetFrameworkMonikers.UapAot)]
public void MissingTopLevelNamedExportMessageIsInformative()
{
var cc = CreateContainer();

View File

@@ -116,6 +116,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue("https://github.com/dotnet/corefx/issues/20656", TargetFrameworkMonikers.UapAot)]
public void TheSameSharedInstanceIsReusedWithinItsSharingBoundary()
{
var cc = CreateContainer(typeof(SharedBoundedByDC), typeof(SharedPartConsumer), typeof(DataConsistencyBoundaryProvider));

View File

@@ -78,6 +78,7 @@ namespace System.Composition.Lightweight.UnitTests
}
[Fact]
[ActiveIssue("https://github.com/dotnet/corefx/issues/20656", TargetFrameworkMonikers.UapAot)]
public void AConcreteTypeWithUnsupportedConstructorsCannotBeUsedAsAMetadataView()
{
var cc = new ContainerConfiguration()
@@ -102,6 +103,7 @@ namespace System.Composition.Lightweight.UnitTests
}
[Fact]
[ActiveIssue("https://github.com/dotnet/corefx/issues/20656", TargetFrameworkMonikers.UapAot)]
public void UnsupportedMetadataViewMessageIsInformative()
{
var cc = new ContainerConfiguration().WithParts(typeof(ImportsWithMetadataInterface), typeof(ExportsWithMetadata)).CreateContainer();

View File

@@ -124,6 +124,7 @@ namespace System.Composition.UnitTests
// In future, the set of allowable generic type mappings will be expanded (see
// ignored tests above).
[Fact]
[ActiveIssue("https://github.com/dotnet/corefx/issues/20656", TargetFrameworkMonikers.UapAot)]
public void TypesWithMismatchedGenericParameterListsAreDetectedDuringDiscovery()
{
var x = Assert.Throws<CompositionFailedException>(() => CreateContainer(typeof(RepositoryWithKey<,>)));
@@ -131,6 +132,7 @@ namespace System.Composition.UnitTests
}
[Fact]
[ActiveIssue("https://github.com/dotnet/corefx/issues/20656", TargetFrameworkMonikers.UapAot)]
public void TypesWithNonGenericExportsAreDetectedDuringDiscovery()
{
var x = Assert.Throws<CompositionFailedException>(() => CreateContainer(typeof(RepositoryWithNonGenericExport<>)));

View File

@@ -338,6 +338,7 @@ namespace System.Composition.UnitTests
/// Needs to be fixed so that specifying boundary would automatically create the shared
/// </summary>
[Fact]
[ActiveIssue("https://github.com/dotnet/corefx/issues/20656", TargetFrameworkMonikers.UapAot)]
public void BoundarySharingTest()
{
var cc = CreateContainer(typeof(A), typeof(B), typeof(C), typeof(D));
@@ -359,6 +360,7 @@ namespace System.Composition.UnitTests
/// CirA root of the composition has to be shared explicitly.
/// </summary>
[Fact]
[ActiveIssue("https://github.com/dotnet/corefx/issues/20656", TargetFrameworkMonikers.UapAot)]
public void CircularBoundarySharingTest()
{
var cc = CreateContainer(typeof(CirA), typeof(CirB), typeof(CirC));
@@ -375,6 +377,7 @@ namespace System.Composition.UnitTests
/// Something is badly busted here.. I am getting a null ref exception
/// </summary>
[Fact]
[ActiveIssue("https://github.com/dotnet/corefx/issues/20656", TargetFrameworkMonikers.UapAot)]
public void MultipleBoundarySpecified()
{
var cc = CreateContainer(typeof(ProjA), typeof(ProjB), typeof(SolA), typeof(DocA), typeof(DocB), typeof(ColA), typeof(ColB));