You've already forked linux-packaging-mono
Imported Upstream version 5.10.0.69
Former-commit-id: fc39669a0b707dd3c063977486506b6793da2890
This commit is contained in:
parent
d8f8abd549
commit
e2950ec768
@@ -11,6 +11,7 @@ namespace System.Composition.Hosting.Core.Tests
|
||||
public class CompositionHostTests
|
||||
{
|
||||
[Fact]
|
||||
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
|
||||
public void GetExport_CompositionContextContract_ReturnsExpected()
|
||||
{
|
||||
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]))
|
||||
@@ -21,6 +22,7 @@ namespace System.Composition.Hosting.Core.Tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
|
||||
public void GetExport_MultipleDependencies_ReturnsExpected()
|
||||
{
|
||||
using (CompositionHost host = CompositionHost.CreateCompositionHost(new MultipleDependency()))
|
||||
@@ -55,6 +57,7 @@ namespace System.Composition.Hosting.Core.Tests
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
|
||||
[InlineData(typeof(int), new Type[] { typeof(int) })]
|
||||
[InlineData(typeof(IList<>), new Type[] { typeof(IList<>) })]
|
||||
[InlineData(typeof(ICollection<>), new Type[] { typeof(ICollection<>) })]
|
||||
@@ -84,6 +87,7 @@ namespace System.Composition.Hosting.Core.Tests
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
|
||||
[InlineData(typeof(string[]), new Type[] { typeof(string[]), typeof(string) })]
|
||||
[InlineData(typeof(IList<string>), new Type[] { typeof(IList<string>), typeof(string) })]
|
||||
[InlineData(typeof(ICollection<string>), new Type[] { typeof(ICollection<string>), typeof(string) })]
|
||||
@@ -102,6 +106,7 @@ namespace System.Composition.Hosting.Core.Tests
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
|
||||
[InlineData(typeof(ExportFactory<int>), null, new Type[] { typeof(int), typeof(ExportFactory<int>) })]
|
||||
[InlineData(typeof(ExportFactory<int>), new string[] { "1", "2", "3" }, new Type[] { typeof(int), typeof(ExportFactory<int>) })]
|
||||
[InlineData(typeof(ExportFactory<int, ParameterlessConstructor>), null, new Type[] { typeof(int), typeof(ExportFactory<int, ParameterlessConstructor>) })]
|
||||
@@ -130,6 +135,7 @@ namespace System.Composition.Hosting.Core.Tests
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
|
||||
[InlineData(typeof(Lazy<int, int>))]
|
||||
[InlineData(typeof(Lazy<int, IDictionary<string, string>>))]
|
||||
[InlineData(typeof(Lazy<int, PrivateConstructor>))]
|
||||
@@ -143,6 +149,7 @@ namespace System.Composition.Hosting.Core.Tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
|
||||
public void GetExport_AbstractMetadata_ThrowsInvalidOperationException()
|
||||
{
|
||||
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]))
|
||||
@@ -152,6 +159,7 @@ namespace System.Composition.Hosting.Core.Tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
|
||||
public void GetExport_NullProviderInProviders_ThrowsNullReferenceException()
|
||||
{
|
||||
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[] { null }))
|
||||
@@ -170,6 +178,7 @@ namespace System.Composition.Hosting.Core.Tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
|
||||
public void GetExport_MultipleReturns_ThrowsCompositionFailedException()
|
||||
{
|
||||
using (CompositionHost host = CompositionHost.CreateCompositionHost(new MultiplePromises()))
|
||||
@@ -192,6 +201,7 @@ namespace System.Composition.Hosting.Core.Tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
|
||||
public void GetExport_FailedDependency_ThrowsCompositionFailedException()
|
||||
{
|
||||
using (CompositionHost host = CompositionHost.CreateCompositionHost(new FailedDependency()))
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace System.Composition.Hosting.Core.Tests
|
||||
public class CompositionOperationTests
|
||||
{
|
||||
[Fact]
|
||||
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
|
||||
public void Run_ValidContextAndAction_ReturnsExpected()
|
||||
{
|
||||
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]))
|
||||
@@ -49,6 +50,7 @@ namespace System.Composition.Hosting.Core.Tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
|
||||
public void Run_NullActivator_ThrowsArgumentNullException()
|
||||
{
|
||||
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]))
|
||||
@@ -61,6 +63,7 @@ namespace System.Composition.Hosting.Core.Tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
|
||||
public void AddNonPrequisiteAction_NullAction_ThrowsArgumentNullException()
|
||||
{
|
||||
object Activator(LifetimeContext context, CompositionOperation operation)
|
||||
@@ -79,6 +82,7 @@ namespace System.Composition.Hosting.Core.Tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
|
||||
public void AddPostCompositionAction_NullAction_ThrowsArgumentNullException()
|
||||
{
|
||||
object Activator(LifetimeContext context, CompositionOperation operation)
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace System.Composition.Hosting.Core.Tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
|
||||
public void AddBoundInstance_NonNullInstance_DisposesInstanceOnDisposal()
|
||||
{
|
||||
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]))
|
||||
@@ -35,6 +36,7 @@ namespace System.Composition.Hosting.Core.Tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
|
||||
public void AddBoundInstance_NullInstance_ThrowsNullReferenceExceptionOnDisposal()
|
||||
{
|
||||
CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]);
|
||||
@@ -46,6 +48,7 @@ namespace System.Composition.Hosting.Core.Tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
|
||||
public void AddBoundInstance_Disposed_ThrowsObjectDisposedException()
|
||||
{
|
||||
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]))
|
||||
@@ -59,6 +62,7 @@ namespace System.Composition.Hosting.Core.Tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
|
||||
public void GetOrCreate_ValidActivatorDuringInitialization_Success()
|
||||
{
|
||||
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]))
|
||||
@@ -87,6 +91,7 @@ namespace System.Composition.Hosting.Core.Tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
|
||||
public void GetOrCreate_ValidActivatorAfterInitialization_Success()
|
||||
{
|
||||
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]))
|
||||
@@ -116,6 +121,7 @@ namespace System.Composition.Hosting.Core.Tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
|
||||
public void GetOrCreate_NullActivator_ThrowsNullReferenceException()
|
||||
{
|
||||
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]))
|
||||
@@ -134,6 +140,7 @@ namespace System.Composition.Hosting.Core.Tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
|
||||
public void GetOrCreate_NullOperation_ThrowsNullReferenceException()
|
||||
{
|
||||
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]))
|
||||
@@ -146,6 +153,7 @@ namespace System.Composition.Hosting.Core.Tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
|
||||
public void FindContextWithin_NullSharingBoundary_ReturnsRoot()
|
||||
{
|
||||
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]))
|
||||
@@ -158,6 +166,7 @@ namespace System.Composition.Hosting.Core.Tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
|
||||
public void FindContextWithin_UnknownSharingBoundary_ThrowsCompositionFailedException()
|
||||
{
|
||||
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]))
|
||||
@@ -170,6 +179,7 @@ namespace System.Composition.Hosting.Core.Tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
|
||||
public void ToString_NoParent_ReturnsExpected()
|
||||
{
|
||||
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]))
|
||||
|
||||
Reference in New Issue
Block a user