Skip to content

Commit

Permalink
Remove obsolete ActiveIssue attributes for dotnet#23972 (dotnet#39842)
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorHofer authored and Jacksondr5 committed Aug 10, 2020
1 parent c49ebd6 commit a2e8805
Show file tree
Hide file tree
Showing 33 changed files with 32 additions and 217 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ namespace System.Composition.Hosting.Core.Tests
public class CompositionHostTests
{
[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void GetExport_CompositionContextContract_ReturnsExpected()
{
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]))
Expand All @@ -21,7 +20,6 @@ public void GetExport_CompositionContextContract_ReturnsExpected()
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void GetExport_MultipleDependencies_ReturnsExpected()
{
using (CompositionHost host = CompositionHost.CreateCompositionHost(new MultipleDependency()))
Expand Down Expand Up @@ -56,7 +54,6 @@ public override IEnumerable<ExportDescriptorPromise> GetExportDescriptors(Compos
}

[Theory]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
[InlineData(typeof(int), new Type[] { typeof(int) })]
[InlineData(typeof(IList<>), new Type[] { typeof(IList<>) })]
[InlineData(typeof(ICollection<>), new Type[] { typeof(ICollection<>) })]
Expand Down Expand Up @@ -86,7 +83,6 @@ public void GetExport_LazyOrExportFactoryContractType_ReturnsExpected(Type type,
}

[Theory]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", 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) })]
Expand All @@ -105,7 +101,6 @@ public void GetExport_ImoportManyWithMetadataConstraints_ReturnsExpected(Type co
}

[Theory]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", 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>) })]
Expand Down Expand Up @@ -134,7 +129,6 @@ public override IEnumerable<ExportDescriptorPromise> GetExportDescriptors(Compos
}

[Theory]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
[InlineData(typeof(Lazy<int, int>))]
[InlineData(typeof(Lazy<int, IDictionary<string, string>>))]
[InlineData(typeof(Lazy<int, PrivateConstructor>))]
Expand All @@ -148,7 +142,6 @@ public void GetExport_InvalidMetadata_ThrowsComposititionFailedException(Type ty
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void GetExport_AbstractMetadata_ThrowsInvalidOperationException()
{
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]))
Expand All @@ -158,7 +151,6 @@ public void GetExport_AbstractMetadata_ThrowsInvalidOperationException()
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void GetExport_NullProviderInProviders_ThrowsNullReferenceException()
{
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[] { null }))
Expand All @@ -177,7 +169,6 @@ public void TryGetExport_NullContract_ThrowsArgumentNullException()
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void GetExport_MultipleReturns_ThrowsCompositionFailedException()
{
using (CompositionHost host = CompositionHost.CreateCompositionHost(new MultiplePromises()))
Expand All @@ -200,7 +191,6 @@ public override IEnumerable<ExportDescriptorPromise> GetExportDescriptors(Compos
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void GetExport_FailedDependency_ThrowsCompositionFailedException()
{
using (CompositionHost host = CompositionHost.CreateCompositionHost(new FailedDependency()))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ namespace System.Composition.Hosting.Core.Tests
public class CompositionOperationTests
{
[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void Run_ValidContextAndAction_ReturnsExpected()
{
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]))
Expand Down Expand Up @@ -49,7 +48,6 @@ public void Run_NullOutmostContext_ThrowsArgumentNullException()
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void Run_NullActivator_ThrowsArgumentNullException()
{
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]))
Expand All @@ -62,7 +60,6 @@ public void Run_NullActivator_ThrowsArgumentNullException()
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void AddNonPrequisiteAction_NullAction_ThrowsArgumentNullException()
{
object Activator(LifetimeContext context, CompositionOperation operation)
Expand All @@ -81,7 +78,6 @@ object Activator(LifetimeContext context, CompositionOperation operation)
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void AddPostCompositionAction_NullAction_ThrowsArgumentNullException()
{
object Activator(LifetimeContext context, CompositionOperation operation)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public void AllocateSharingId_InvokeMultipleTimes_ReturnsDifferentValue()
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void AddBoundInstance_NonNullInstance_DisposesInstanceOnDisposal()
{
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]))
Expand All @@ -35,7 +34,6 @@ public void AddBoundInstance_NonNullInstance_DisposesInstanceOnDisposal()
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void AddBoundInstance_NullInstance_ThrowsNullReferenceExceptionOnDisposal()
{
CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]);
Expand All @@ -47,7 +45,6 @@ public void AddBoundInstance_NullInstance_ThrowsNullReferenceExceptionOnDisposal
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void AddBoundInstance_Disposed_ThrowsObjectDisposedException()
{
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]))
Expand All @@ -61,7 +58,6 @@ public void AddBoundInstance_Disposed_ThrowsObjectDisposedException()
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void GetOrCreate_ValidActivatorDuringInitialization_Success()
{
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]))
Expand Down Expand Up @@ -90,7 +86,6 @@ object GetOrCreateActivate(LifetimeContext getOrCreateContext, CompositionOperat
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void GetOrCreate_ValidActivatorAfterInitialization_Success()
{
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]))
Expand Down Expand Up @@ -120,7 +115,6 @@ object Activator(LifetimeContext activatorContext, CompositionOperation activato
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void GetOrCreate_NullActivator_ThrowsNullReferenceException()
{
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]))
Expand All @@ -139,7 +133,6 @@ object Activator(LifetimeContext activatorContext, CompositionOperation activato
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void GetOrCreate_NullOperation_ThrowsNullReferenceException()
{
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]))
Expand All @@ -152,7 +145,6 @@ public void GetOrCreate_NullOperation_ThrowsNullReferenceException()
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void FindContextWithin_NullSharingBoundary_ReturnsRoot()
{
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]))
Expand All @@ -165,7 +157,6 @@ public void FindContextWithin_NullSharingBoundary_ReturnsRoot()
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void FindContextWithin_UnknownSharingBoundary_ThrowsCompositionFailedException()
{
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]))
Expand All @@ -178,7 +169,6 @@ public void FindContextWithin_UnknownSharingBoundary_ThrowsCompositionFailedExce
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void ToString_NoParent_ReturnsExpected()
{
using (CompositionHost host = CompositionHost.CreateCompositionHost(new ExportDescriptorProvider[0]))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ namespace System.Composition.Hosting.Tests
public class ContainerConfigurationTests
{
[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void WithProvider_ValidProvider_RegistersProvider()
{
var configuration = new ContainerConfiguration();
Expand Down Expand Up @@ -62,7 +61,6 @@ public void WithProvider_NullProvider_ThrowsArgumentNullException()
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void WithDefaultConventions_PartWithNoMatchingConvention_Success()
{
var conventions = new ConventionBuilder();
Expand All @@ -77,7 +75,6 @@ public void WithDefaultConventions_PartWithNoMatchingConvention_Success()
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void WithDefaultConventions_IEnumerablePartsWithNoMatchingConvention_Success()
{
var conventions = new ConventionBuilder();
Expand All @@ -92,7 +89,6 @@ public void WithDefaultConventions_IEnumerablePartsWithNoMatchingConvention_Succ
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void WithDefaultConventions_PartsArrayWithNoMatchingConvention_Success()
{
var conventions = new ConventionBuilder();
Expand All @@ -107,7 +103,6 @@ public void WithDefaultConventions_PartsArrayWithNoMatchingConvention_Success()
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void WithDefaultConventions_PartTNoMatchingConvention_Success()
{
var conventions = new ConventionBuilder();
Expand Down Expand Up @@ -143,7 +138,6 @@ public void WithDefaultConventions_AlreadyHasDefaultConventions_ThrowsInvalidOpe
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void WithPartT_Convention_Success()
{
var conventions = new ConventionBuilder();
Expand All @@ -157,7 +151,6 @@ public void WithPartT_Convention_Success()
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void WithPart_Convention_Success()
{
var conventions = new ConventionBuilder();
Expand All @@ -179,7 +172,6 @@ public void WithPart_NullPartType_ThrowsArgumentNullException()
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void WithParts_Convention_Success()
{
var conventions = new ConventionBuilder();
Expand Down Expand Up @@ -262,7 +254,6 @@ public void WithAssemby_Null_ThrowsNullReferenceExceptionOnCreation()
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void CreateContainer_ExportedSubClass_Success()
{
CompositionHost container = new ContainerConfiguration()
Expand All @@ -283,7 +274,6 @@ public class Base
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void CreateContainer_OpenGenericTypes_Success()
{
var conventions = new ConventionBuilder();
Expand Down Expand Up @@ -313,7 +303,6 @@ public EFRepository(IContainer test) { }
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void CreateContainer_ImportConventionsWithInheritedProperties_Success()
{
var conventions = new ConventionBuilder();
Expand Down Expand Up @@ -341,7 +330,6 @@ public class BaseWithImport
public class DerivedFromBaseWithImport : BaseWithImport { }

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void CreateContainer_ExportConventionsWithInheritedProperties_Success()
{
var conventions = new ConventionBuilder();
Expand All @@ -363,7 +351,6 @@ public class BaseWithExport
public class DerivedFromBaseWithExport : BaseWithExport { }

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void CreateContainer_ExportsToInheritedProperties_DontInterfereWithBase()
{
var conventions = new ConventionBuilder();
Expand All @@ -387,7 +374,6 @@ public class BaseWithExport2
public class DerivedFromBaseWithExport2 : BaseWithExport { }

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void CreateContainer_HasConventions_ClassExportsAreNotInherited()
{
CompositionHost container = new ContainerConfiguration()
Expand All @@ -397,7 +383,6 @@ public void CreateContainer_HasConventions_ClassExportsAreNotInherited()
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void CreateContainer_HasConventions_PropertyExportsAreNotInherited()
{
CompositionHost container = new ContainerConfiguration()
Expand All @@ -420,7 +405,6 @@ public class DerivedFromBaseWithDeclaredExports : BaseWithDeclaredExports { }
public class CustomExport : ExportAttribute { }

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void CreateContainer_HasConventions_CustomAttributesAreNotInherited()
{
CompositionHost container = new ContainerConfiguration()
Expand All @@ -435,7 +419,6 @@ public class BaseWithCustomExport { }
public class DerivedFromBaseWithCustomExport : BaseWithCustomExport { }

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void CreateContainer_OpenGenericTypePart_Success()
{
ContainerConfiguration configuration = new ContainerConfiguration().WithParts(typeof(GenericExportedType<>));
Expand Down Expand Up @@ -489,7 +472,6 @@ public void CreateContainer_UnassignableType_ThrowsCompositionFailedException()
public class ContractExportedType { }

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void CreateContainer_AbstractOrStructType_Success()
{
ContainerConfiguration configuration = new ContainerConfiguration().WithParts(typeof(AbstractClass), typeof(StructType));
Expand All @@ -503,7 +485,6 @@ public abstract class AbstractClass { }
public struct StructType { }

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void CreateContainer_MetadataProperty_Success()
{
ContainerConfiguration configuration = new ContainerConfiguration().WithPart(typeof(MetadataProperty));
Expand Down Expand Up @@ -541,7 +522,6 @@ public class MetadataProperty
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void CreateContainer_MetadataClass_Success()
{
ContainerConfiguration configuration = new ContainerConfiguration().WithPart(typeof(MetadataClass));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ public class ReflectionTests
/// revert to a default value during GetExport.
/// </remarks>
[ConditionalFact(nameof(HasMultiplerProcessors))]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void MultiThreadedGetExportsWorkWithImportingConstuctor()
{
var errors = new ConcurrentBag<Exception>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public void OnImportsSatisfied()
public class ActivationEventOrderingTests : ContainerTests
{
[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void OnImportsSatisfiedIsCalledAfterPropertyInjection()
{
var cc = CreateContainer(typeof(TracksImportSatisfaction), typeof(Imported));
Expand Down
2 changes: 0 additions & 2 deletions src/libraries/System.Composition/tests/CardinalityTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public UsesLog(ILog log) { }
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void RequestingOneWhereMultipleArePresentFails()
{
var c = CreateContainer(typeof(LogA), typeof(LogB));
Expand All @@ -42,7 +41,6 @@ public void RequestingOneWhereMultipleArePresentFails()
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/23972", TargetFrameworkMonikers.NetFramework)]
public void ImportingOneWhereMultipleArePresentFails()
{
var c = CreateContainer(typeof(LogA), typeof(LogB), typeof(UsesLog));
Expand Down
Loading

0 comments on commit a2e8805

Please sign in to comment.