diff --git a/eng/testing/tests.targets b/eng/testing/tests.targets index 8a660f917e28c..b6a119c599fc0 100644 --- a/eng/testing/tests.targets +++ b/eng/testing/tests.targets @@ -80,7 +80,6 @@ <_rspFile Include="$(TestRspFile)" Condition="'$(TestRspFile)' != ''" /> - <_rspFile Include="$(MonoProjectRoot)netcore\CoreFX.issues.rsp" /> <_rspFile Include="$(MonoProjectRoot)netcore\CoreFX.issues_mac.rsp" Condition="'$(TargetOS)' == 'OSX'" /> <_rspFile Include="$(MonoProjectRoot)netcore\CoreFX.issues_linux.rsp" Condition="'$(TargetOS)' == 'Linux'" /> <_rspFile Include="$(MonoProjectRoot)netcore\CoreFX.issues_windows.rsp" Condition="'$(TargetOS)' == 'Windows_NT'" /> diff --git a/src/libraries/Common/tests/CoreFx.Private.TestUtilities/System/PlatformDetection.cs b/src/libraries/Common/tests/CoreFx.Private.TestUtilities/System/PlatformDetection.cs index c5d4184533aab..7b0df3581c16a 100644 --- a/src/libraries/Common/tests/CoreFx.Private.TestUtilities/System/PlatformDetection.cs +++ b/src/libraries/Common/tests/CoreFx.Private.TestUtilities/System/PlatformDetection.cs @@ -33,6 +33,8 @@ public static partial class PlatformDetection public static bool IsArgIteratorNotSupported => !IsArgIteratorSupported; public static bool Is32BitProcess => IntPtr.Size == 4; + // Please make sure that you have the libgdiplus dependency installed. + // For details, see https://docs.microsoft.com/dotnet/core/install/dependencies?pivots=os-macos&tabs=netcore31#libgdiplus public static bool IsDrawingSupported { get diff --git a/src/libraries/Microsoft.VisualBasic.Core/tests/ErrObjectTests.cs b/src/libraries/Microsoft.VisualBasic.Core/tests/ErrObjectTests.cs index 0f863c5ab02c1..9708195070dc2 100644 --- a/src/libraries/Microsoft.VisualBasic.Core/tests/ErrObjectTests.cs +++ b/src/libraries/Microsoft.VisualBasic.Core/tests/ErrObjectTests.cs @@ -11,6 +11,7 @@ namespace Microsoft.VisualBasic.Tests public class ErrObjectTests { [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/14854", TestRuntimes.Mono)] public void Clear() { ProjectData.ClearProjectError(); diff --git a/src/libraries/Microsoft.VisualBasic.Core/tests/InteractionTests.cs b/src/libraries/Microsoft.VisualBasic.Core/tests/InteractionTests.cs index b94b9d51f180d..4ee3004cf6853 100644 --- a/src/libraries/Microsoft.VisualBasic.Core/tests/InteractionTests.cs +++ b/src/libraries/Microsoft.VisualBasic.Core/tests/InteractionTests.cs @@ -138,6 +138,7 @@ public static IEnumerable IIf_TestData() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2139", TestRuntimes.Mono)] public void DeleteSetting() { if (!PlatformDetection.IsInAppContainer) @@ -207,6 +208,7 @@ private static (string, string)[] GetEnvironmentVariables() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2139", TestRuntimes.Mono)] public void GetAllSettings() { if (!PlatformDetection.IsInAppContainer) @@ -221,6 +223,7 @@ public void GetAllSettings() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2139", TestRuntimes.Mono)] public void GetSetting() { if (!PlatformDetection.IsInAppContainer) @@ -301,14 +304,14 @@ public void Partition_Overflow(long Number, long Start, long Stop, long Interval { Assert.Throws(() => Interaction.Partition(Number, Start, Stop, Interval)); } - + [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2139", TestRuntimes.Mono)] public void SaveSetting() { if (!PlatformDetection.IsInAppContainer) { Assert.Throws(() => Interaction.SaveSetting(AppName: "", Section: "", Key: "", Setting: "")); - } else { diff --git a/src/libraries/System.Collections.Concurrent/tests/ConcurrentQueueTests.cs b/src/libraries/System.Collections.Concurrent/tests/ConcurrentQueueTests.cs index 4fa9bee5715a0..0372629d7f860 100644 --- a/src/libraries/System.Collections.Concurrent/tests/ConcurrentQueueTests.cs +++ b/src/libraries/System.Collections.Concurrent/tests/ConcurrentQueueTests.cs @@ -212,6 +212,7 @@ public void IEnumerable_GetAllExpectedItems() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16413", TestRuntimes.Mono)] public void ReferenceTypes_NulledAfterDequeue() { int iterations = 10; // any number <32 will do diff --git a/src/libraries/System.Collections.Specialized/tests/NameValueCollection/NameValueCollection.CtorTests.cs b/src/libraries/System.Collections.Specialized/tests/NameValueCollection/NameValueCollection.CtorTests.cs index 0c8b980aa3fe0..95e9c402f0d43 100644 --- a/src/libraries/System.Collections.Specialized/tests/NameValueCollection/NameValueCollection.CtorTests.cs +++ b/src/libraries/System.Collections.Specialized/tests/NameValueCollection/NameValueCollection.CtorTests.cs @@ -68,6 +68,7 @@ public void Ctor_Int(int capacity) } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/14858", TestRuntimes.Mono)] public void Ctor_NegativeCapacity_ThrowsArgumentOutOfRangeException() { AssertExtensions.Throws("capacity", () => new NameValueCollection(-1)); diff --git a/src/libraries/System.ComponentModel.Composition.Registration/tests/AssemblyInfo.cs b/src/libraries/System.ComponentModel.Composition.Registration/tests/AssemblyInfo.cs new file mode 100644 index 0000000000000..5dc2e1c959dfc --- /dev/null +++ b/src/libraries/System.ComponentModel.Composition.Registration/tests/AssemblyInfo.cs @@ -0,0 +1,7 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Xunit; + +[assembly: SkipOnMono("System.ComponentModel.Composition.Registration APIs are not supported on this platform")] \ No newline at end of file diff --git a/src/libraries/System.ComponentModel.Composition.Registration/tests/System.ComponentModel.Composition.Registration.Tests.csproj b/src/libraries/System.ComponentModel.Composition.Registration/tests/System.ComponentModel.Composition.Registration.Tests.csproj index 8c0707afe31bb..d7711c3f4dcde 100644 --- a/src/libraries/System.ComponentModel.Composition.Registration/tests/System.ComponentModel.Composition.Registration.Tests.csproj +++ b/src/libraries/System.ComponentModel.Composition.Registration/tests/System.ComponentModel.Composition.Registration.Tests.csproj @@ -3,6 +3,7 @@ $(NetCoreAppCurrent) + diff --git a/src/libraries/System.ComponentModel.Composition/tests/AssemblyInfo.cs b/src/libraries/System.ComponentModel.Composition/tests/AssemblyInfo.cs new file mode 100644 index 0000000000000..68af85566d692 --- /dev/null +++ b/src/libraries/System.ComponentModel.Composition/tests/AssemblyInfo.cs @@ -0,0 +1,7 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using Xunit; + +[assembly: SkipOnMono("Flaky tests: https://github.com/mono/mono/issues/16417")] diff --git a/src/libraries/System.ComponentModel.Composition/tests/System.ComponentModel.Composition.Tests.csproj b/src/libraries/System.ComponentModel.Composition/tests/System.ComponentModel.Composition.Tests.csproj index 2c47c61615e32..7dac12f1e21a6 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System.ComponentModel.Composition.Tests.csproj +++ b/src/libraries/System.ComponentModel.Composition/tests/System.ComponentModel.Composition.Tests.csproj @@ -16,6 +16,7 @@ Common\System\IO\TempFile.cs + diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/AdvancedValueComposition.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/AdvancedValueComposition.cs index ae396333e449f..0712402e761c1 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/AdvancedValueComposition.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/AdvancedValueComposition.cs @@ -24,6 +24,7 @@ public interface ITrans_CollectionOfStrings public class AdvancedValueComposition { [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void RepeatedContainerUse() { var container = ContainerFactory.Create(); @@ -41,6 +42,7 @@ public void RepeatedContainerUse() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void FunctionsFieldsAndProperties() { Consumer c; @@ -55,6 +57,7 @@ public void FunctionsFieldsAndProperties() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void FunctionsFieldsAndProperties2() { Consumer c; @@ -252,6 +255,7 @@ public void ImportIntoUntypedExportTest() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ImportIntoDerivationOfExportException() { var container = ContainerFactory.Create(); @@ -269,6 +273,7 @@ public void ImportIntoDerivationOfExportException() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ImportIntoDerivationOfExportsException() { var container = ContainerFactory.Create(); diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/AttributedModel/AllowNonPublicCompositionTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/AttributedModel/AllowNonPublicCompositionTests.cs index 0d18d712a5975..fccfc9c9fd0df 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/AttributedModel/AllowNonPublicCompositionTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/AttributedModel/AllowNonPublicCompositionTests.cs @@ -8,9 +8,11 @@ namespace System.ComponentModel.Composition { + // [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public class AllowNonPublicCompositionTests { [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void PublicFromPublic() { var container = ContainerFactory.Create(); @@ -25,6 +27,7 @@ public void PublicFromPublic() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void PublicToSelf() { var container = ContainerFactory.Create(); @@ -38,6 +41,7 @@ public void PublicToSelf() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void PublicFromPrivate() { var container = ContainerFactory.Create(); @@ -52,6 +56,7 @@ public void PublicFromPrivate() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void PrivateFromPublic() { var container = ContainerFactory.Create(); @@ -66,6 +71,7 @@ public void PrivateFromPublic() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void PrivateToSelf() { var container = ContainerFactory.Create(); @@ -79,6 +85,7 @@ public void PrivateToSelf() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void PrivateData() { var container = ContainerFactory.Create(); diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/AttributedModel/AttributedModelCompositionTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/AttributedModel/AttributedModelCompositionTests.cs index c197d1043c42a..f3e5e85fac75c 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/AttributedModel/AttributedModelCompositionTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/AttributedModel/AttributedModelCompositionTests.cs @@ -10,6 +10,7 @@ namespace System.ComponentModel.Composition.AttributedModel { + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public class AttributedModelCompositionTests { [Fact] diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/AttributedModel/AttributedModelDiscoveryTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/AttributedModel/AttributedModelDiscoveryTests.cs index c534a20d8b1f2..d0abdecda1aa9 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/AttributedModel/AttributedModelDiscoveryTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/AttributedModel/AttributedModelDiscoveryTests.cs @@ -16,6 +16,7 @@ namespace System.ComponentModel.Composition.AttributedModel public class AttributedModelDiscoveryTests { [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void CreatePartDefinition_TypeWithExports_ShouldHaveMultipleExports() { var definition = CreateDefinition(typeof(PublicComponentWithPublicExports)); @@ -34,6 +35,7 @@ public class DerivedClassWithInheritedPropertyExports : BaseClassWithPropertyExp } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void CreatePartDefinition_TypeWithImports_ShouldHaveMultipleImports() { var definition = CreateDefinition(typeof(PublicImportsExpectingPublicExports)); @@ -156,6 +158,7 @@ public void CreatePartDefinition_MultipleMarkedConstructorsAsPartTypeArgument_Sh } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void CreatePartDefinition_OneMarkedConstructorsAsPartTypeArgument_ShouldSetConstructorToMarked() { var definition = CreateDefinition(typeof(SimpleConstructorInjectedObject)); @@ -167,6 +170,7 @@ public void CreatePartDefinition_OneMarkedConstructorsAsPartTypeArgument_ShouldS } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void CreatePartDefinition_OneDefaultConstructorAsPartTypeArgument_ShouldSetConstructorToDefault() { var definition = CreateDefinition(typeof(PublicComponentWithPublicExports)); @@ -179,6 +183,7 @@ public void CreatePartDefinition_OneDefaultConstructorAsPartTypeArgument_ShouldS } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void CreatePartDefinition_OneMarkedAndOneDefaultConstructorsAsPartTypeArgument_ShouldSetConstructorToMarked() { var definition = CreateDefinition(typeof(ClassWithOneMarkedAndOneDefaultConstructor)); diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/AttributedModel/INotifyImportTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/AttributedModel/INotifyImportTests.cs index 5be65a203dd53..bc1fbc122d5b4 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/AttributedModel/INotifyImportTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/AttributedModel/INotifyImportTests.cs @@ -23,6 +23,7 @@ public void OnImportsSatisfied() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ImportsSatisfiedOnComponentWithoutImports() { CompositionContainer container = ContainerFactory.CreateWithAttributedCatalog(typeof(PartWithoutImports)); @@ -35,6 +36,7 @@ public void ImportsSatisfiedOnComponentWithoutImports() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ImportCompletedTest() { var container = ContainerFactory.Create(); @@ -56,6 +58,7 @@ public void ImportCompletedTest() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ImportCompletedWithRecomposing() { var container = ContainerFactory.Create(); @@ -94,6 +97,7 @@ public void ImportCompletedWithRecomposing() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ImportCompletedAddPartAndBindComponent() { var container = ContainerFactory.Create(); diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/AttributedModelServicesTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/AttributedModelServicesTests.cs index 0355f4e2cc6ba..a86ba6ea643eb 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/AttributedModelServicesTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/AttributedModelServicesTests.cs @@ -145,6 +145,7 @@ public void Imports_Throws_OnNullContractName() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void Imports() { ComposablePartDefinition part1 = typeof(PartImportingContract1).AsPart(); @@ -158,6 +159,7 @@ public void Imports() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void Imports_CardinalityIgnored_WhenNotSpecified() { ComposablePartDefinition part1 = typeof(PartImportingContract1).AsPart(); @@ -170,6 +172,7 @@ public void Imports_CardinalityIgnored_WhenNotSpecified() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void Imports_CardinalityNotIgnored_WhenSpecified() { ComposablePartDefinition part1 = typeof(PartImportingContract1).AsPart(); @@ -200,6 +203,7 @@ public void ImportsGeneric_Throws_OnNullPart() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ImportsGeneric() { ComposablePartDefinition part1 = typeof(PartImportingContract1).AsPart(); @@ -213,6 +217,7 @@ public void ImportsGeneric() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ImportsGeneric_CardinalityIgnored_WhenNotSpecified() { ComposablePartDefinition part1 = typeof(PartImportingContract1).AsPart(); @@ -225,6 +230,7 @@ public void ImportsGeneric_CardinalityIgnored_WhenNotSpecified() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ImportsGeneric_CardinalityNotIgnored_WhenSpecified() { ComposablePartDefinition part1 = typeof(PartImportingContract1).AsPart(); diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ComponentServicesTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ComponentServicesTests.cs index b397beef287c6..7bc778b5734ff 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ComponentServicesTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ComponentServicesTests.cs @@ -74,6 +74,7 @@ public void GetValuesTest() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void NoResolverExceptionTest() { var container = ContainerFactory.Create(); diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/CompositionContainerCollectionTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/CompositionContainerCollectionTests.cs index ca2c7fcc07d3e..a81915a67b703 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/CompositionContainerCollectionTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/CompositionContainerCollectionTests.cs @@ -13,6 +13,7 @@ namespace System.ComponentModel.Composition { + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public class CompositionContainerCollectionTests { public class SupportedImportCollectionAssignments diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/CompositionContainerImportTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/CompositionContainerImportTests.cs index a6821758c0765..991a2f889e1e5 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/CompositionContainerImportTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/CompositionContainerImportTests.cs @@ -13,6 +13,7 @@ namespace System.ComponentModel.Composition { + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public class CompositionContainerImportTests { // Exporting collectin values is not supported diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/CompositionContainerTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/CompositionContainerTests.cs index 9bfd35e6650fe..fdd2e6729e606 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/CompositionContainerTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/CompositionContainerTests.cs @@ -1630,6 +1630,7 @@ public void GetExportedValuesOfT2_AskingForContractWithExportInBothParentAndChil } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/32295", TestRuntimes.Mono)] public void GetExportOfTTMetadataView1_TypeAsMetadataViewTypeArgument_IsUsedAsMetadataConstraint() { var metadata = new Dictionary(); @@ -1726,6 +1727,7 @@ public void GetExports2_TypeAsMetadataViewTypeArgument_IsUsedAsMetadataConstrain } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void GetExportsOfTTMetadataView1_TypeAsMetadataViewTypeArgument_IsUsedAsMetadataConstraint() { var metadata = new Dictionary(); @@ -1750,6 +1752,7 @@ public void GetExportsOfTTMetadataView1_TypeAsMetadataViewTypeArgument_IsUsedAsM } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void GetExportsOfTTMetadataView2_TypeAsMetadataViewTypeArgument_IsUsedAsMetadataConstraint() { var metadata = new Dictionary(); @@ -1870,6 +1873,7 @@ public void RemovePart_PartAlreadyRemovedAsPartArgument_ShouldNotThrow() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void TryComposeSimple() { var container = CreateCompositionContainer(); @@ -1883,6 +1887,7 @@ public void TryComposeSimple() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void TryComposeSimpleFail() { var container = CreateCompositionContainer(); @@ -1900,6 +1905,7 @@ public void TryComposeSimpleFail() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ComposeDisposableChildContainer() { var outerContainer = CreateCompositionContainer(); @@ -1959,6 +1965,7 @@ public void RemoveValueTest() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] [Trait("Type", "Integration")] public void OptionalImportsOfValueTypeBoundToDefaultValueShouldNotAffectAvailableValues() { @@ -1978,6 +1985,7 @@ public void OptionalImportsOfValueTypeBoundToDefaultValueShouldNotAffectAvailabl } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] [Trait("Type", "Integration")] public void OptionalImportsOfNullableValueTypeBoundToDefaultValueShouldNotAffectAvailableValues() { @@ -1997,6 +2005,7 @@ public void OptionalImportsOfNullableValueTypeBoundToDefaultValueShouldNotAffect } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] [Trait("Type", "Integration")] public void OptionalImportsOfReferenceTypeBoundToDefaultValueShouldNotAffectAvailableValues() { @@ -2405,6 +2414,7 @@ public void TryGetValueWithCatalogVerifyExecptionDuringGet() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void TryGetExportedValueWhileLockedForNotify() { var container = CreateCompositionContainer(); @@ -2480,6 +2490,7 @@ public void RemoveFromWrongContainerTest() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] [Trait("Type", "Integration")] public void AddPartSimple() { @@ -2494,6 +2505,7 @@ public void AddPartSimple() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] [Trait("Type", "Integration")] public void AddPart() { @@ -2508,6 +2520,7 @@ public void AddPart() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ComposeReentrantChildContainerDisposed() { var container = CreateCompositionContainer(); @@ -2537,6 +2550,7 @@ public void ComposeReentrantChildContainerDisposed() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ComposeSimple() { var container = CreateCompositionContainer(); @@ -2550,6 +2564,7 @@ public void ComposeSimple() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ComposeSimpleFail() { var container = CreateCompositionContainer(); @@ -2567,6 +2582,7 @@ public void ComposeSimpleFail() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ExceptionDuringNotify() { var container = CreateCompositionContainer(); @@ -2584,6 +2600,7 @@ public void ExceptionDuringNotify() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void NeutralComposeWhileNotified() { var container = CreateCompositionContainer(); @@ -2641,6 +2658,7 @@ public class SimpleExporter } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ThreadSafeCompositionContainer() { TypeCatalog catalog = new TypeCatalog(typeof(SimpleExporter)); @@ -2660,6 +2678,7 @@ public void ThreadSafeCompositionContainer() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ThreadSafeCompositionOptionsCompositionContainer() { TypeCatalog catalog = new TypeCatalog(typeof(SimpleExporter)); @@ -2678,6 +2697,7 @@ public void ThreadSafeCompositionOptionsCompositionContainer() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void DisableSilentRejectionCompositionOptionsCompositionContainer() { TypeCatalog catalog = new TypeCatalog(typeof(SimpleExporter)); @@ -2696,6 +2716,7 @@ public void DisableSilentRejectionCompositionOptionsCompositionContainer() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void DisableSilentRejectionThreadSafeCompositionOptionsCompositionContainer() { TypeCatalog catalog = new TypeCatalog(typeof(SimpleExporter)); @@ -2947,6 +2968,7 @@ public void ComposeExportedValueOfT_ValidContractName_ExportedValue_ImportsAreNo } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void TestExportedValueCachesNullValue() { var container = ContainerFactory.Create(); @@ -2960,6 +2982,7 @@ public void TestExportedValueCachesNullValue() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void TestExportedValueUsingWhereClause_ExportSuccessful() { CompositionContainer container = new CompositionContainer(new TypeCatalog(typeof(MefCollection<,>))); diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/CompositionServiceExportFactoryTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/CompositionServiceExportFactoryTests.cs index 5facc6c902f12..c28a6c40746cf 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/CompositionServiceExportFactoryTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/CompositionServiceExportFactoryTests.cs @@ -42,6 +42,7 @@ public class App } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] [Description("Verifies CompositionServices.SatisfyImportsOne with Scoped ExportFactories")] public void ComposeAppInNewScopeChildrenInRoot_ShouldSucceed() { @@ -66,6 +67,7 @@ public void ComposeAppInNewScopeChildrenInRoot_ShouldSucceed() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] [Description("Verifies CompositionServices.SatisfyImportsOne with Scoped ExportFactories")] public void ComposeAppInNewScopeChildrenInScope_ShouldSucceed() { @@ -90,6 +92,7 @@ public void ComposeAppInNewScopeChildrenInScope_ShouldSucceed() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] [Description("Verifies CompositionServices.SatisfyImportsOne with Scoped ExportFactories")] public void ComposeAppInNewScopeChildrenInBoth_ShouldSucceed() { @@ -114,6 +117,7 @@ public void ComposeAppInNewScopeChildrenInBoth_ShouldSucceed() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] [Description("Verifies CompositionServices.SatisfyImportsOne with NonScoped ExportFactories")] public void ComposeAppInRootScope_ShouldSucceed() { diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/CompositionServicesTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/CompositionServicesTests.cs index 0b01085fe86c3..d9a4e347106ea 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/CompositionServicesTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/CompositionServicesTests.cs @@ -38,6 +38,7 @@ public void ContractNameServicesAddCustomModifiersTest() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15168", TestRuntimes.Mono)] [Description("Verifies CompositionServices.GetDefaultContractName method.")] public void GetDefaultContractNameTest() { diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/DynamicMetadata.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/DynamicMetadata.cs index 9da62f0771500..dc33c46ee8a93 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/DynamicMetadata.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/DynamicMetadata.cs @@ -13,6 +13,7 @@ namespace System.ComponentModel.Composition public class DynamicMetadata : IDisposable { [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SimpleAttachment() { MetadataStore.Container = new CompositionContainer(); @@ -34,6 +35,7 @@ public void SimpleAttachment() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void LocalContainer() { var container1 = new CompositionContainer(); @@ -60,6 +62,7 @@ public void LocalContainer() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void DualContainers() { var container1 = new CompositionContainer(); diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ExportAttributeTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ExportAttributeTests.cs index 8f5b5db508c9a..e4698493c9ea7 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ExportAttributeTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ExportAttributeTests.cs @@ -71,6 +71,7 @@ public void Constructor2_ValueAsContractNameArgument_ShouldSetContractNameProper } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ExportIndexers_ShouldThrowSomething() { var con = new CompositionContainer( diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ExportCollectionTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ExportCollectionTests.cs index 2844d0dac13da..2b91be712f1fe 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ExportCollectionTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ExportCollectionTests.cs @@ -142,6 +142,7 @@ public class ExporterDefault42 } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/31792", TestRuntimes.Mono)] [Trait("Type", "Integration")] public void ImportCollectionsFromContainerOnly() { diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ExportFactoryTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ExportFactoryTests.cs index 03bf5f822aa95..ab9f58b652c32 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ExportFactoryTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ExportFactoryTests.cs @@ -14,6 +14,7 @@ namespace Tests.Integration { + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public class ExportFactoryTests { public interface IId diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ExportableAttributeTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ExportableAttributeTests.cs index 95c2934d4fd49..a8040bcbe7026 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ExportableAttributeTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ExportableAttributeTests.cs @@ -37,6 +37,7 @@ public void UntypedStructureTest() // Silverlight doesn't support strongly typed metadata [Fact] [Trait("Type", "Integration")] + [ActiveIssue("https://github.com/dotnet/runtime/issues/32295", TestRuntimes.Mono)] public void StronglyTypedStructureTest() { var container = ContainerFactory.Create(); @@ -56,6 +57,7 @@ public void StronglyTypedStructureTest() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/32030", TestRuntimes.Mono)] [Trait("Type", "Integration")] public void StronglyTypedStructureTestWithTransparentViews() { diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/GenericsTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/GenericsTests.cs index 0eb4967277131..afc7a0290563a 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/GenericsTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/GenericsTests.cs @@ -304,6 +304,7 @@ public class OpenGenericPartWithClosedGenericImport : IExport } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SelfExportWithClosedGenericImportTest() { TypeCatalog catalog = new TypeCatalog(typeof(SelfImport<>), typeof(OpenGenericPartWithClosedGenericImport<>)); @@ -331,6 +332,7 @@ public void SelfExportTest() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void PropertyExportTest() { TypeCatalog catalog = new TypeCatalog(typeof(PropertyExport<,>)); @@ -344,6 +346,7 @@ public void PropertyExportTest() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void PropertyExportWithContractInferredTest() { TypeCatalog catalog = new TypeCatalog(typeof(PropertyExportWithContractInferred<,>)); @@ -357,6 +360,7 @@ public void PropertyExportWithContractInferredTest() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SelfExportWithPropertyImportTest() { TypeCatalog catalog = new TypeCatalog(typeof(SelfExportWithPropertyImport<,>), typeof(SelfImport<,>)); @@ -371,6 +375,7 @@ public void SelfExportWithPropertyImportTest() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SelfExportWithLazyPropertyImportTest() { TypeCatalog catalog = new TypeCatalog(typeof(SelfExportWithLazyPropertyImport<,>), typeof(SelfImport<,>)); @@ -385,6 +390,7 @@ public void SelfExportWithLazyPropertyImportTest() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SelfExportWithNakedLazyPropertyImportTest() { TypeCatalog catalog = new TypeCatalog(typeof(SelfExportWithNakedLazyPropertyImport<>), typeof(Foo)); @@ -399,6 +405,7 @@ public void SelfExportWithNakedLazyPropertyImportTest() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SelfExportWithExportFactoryPropertyImportTest() { TypeCatalog catalog = new TypeCatalog(typeof(SelfExportWithExportFactoryPropertyImport<,>), typeof(SelfImport<,>)); @@ -420,6 +427,7 @@ public void SelfExportWithExportFactoryPropertyImportTest() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SelfExportWithNakedExportFactoryPropertyImportTest() { TypeCatalog catalog = new TypeCatalog(typeof(SelfExportWithNakedExportFactoryPropertyImport<>), typeof(Foo)); @@ -441,6 +449,7 @@ public void SelfExportWithNakedExportFactoryPropertyImportTest() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SelfExportWithExportFactoryParameterImportTest() { TypeCatalog catalog = new TypeCatalog(typeof(SelfExportWithExportFactoryParameterImport<,>), typeof(SelfImport<,>)); @@ -462,6 +471,7 @@ public void SelfExportWithExportFactoryParameterImportTest() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SelfExportWithCollectionPropertyImportTest() { TypeCatalog catalog = new TypeCatalog(typeof(SelfExportWithCollectionPropertyImport<,>), typeof(SelfImport<,>)); @@ -476,6 +486,7 @@ public void SelfExportWithCollectionPropertyImportTest() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SelfExportWithLazyCollectionPropertyImportTest() { TypeCatalog catalog = new TypeCatalog(typeof(SelfExportWithLazyCollectionPropertyImport<,>), typeof(SelfImport<,>)); @@ -490,6 +501,7 @@ public void SelfExportWithLazyCollectionPropertyImportTest() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SelfExportWithPropertyImportWithContractInferredTest() { TypeCatalog catalog = new TypeCatalog(typeof(SelfExportWithPropertyImportWithContractInferred<,>), typeof(SelfImport<,>)); @@ -504,6 +516,7 @@ public void SelfExportWithPropertyImportWithContractInferredTest() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SelfExportWithParameterImportTest() { TypeCatalog catalog = new TypeCatalog(typeof(SelfExportWithParameterImport<,>), typeof(SelfImport<,>)); @@ -518,6 +531,7 @@ public void SelfExportWithParameterImportTest() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SelfExportWithMultipleGenericImportsTest() { TypeCatalog catalog = new TypeCatalog(typeof(SelfExportWithMultipleGenericImports<,>), typeof(SelfImport<,>), typeof(SelfImport<>), typeof(Foo)); @@ -549,6 +563,7 @@ public void SpecilzationMakesGeneric() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SingletonBehavior() { TypeCatalog catalog = new TypeCatalog(typeof(SingletonExport<,>)); @@ -707,6 +722,7 @@ public void PartWithNakedConstraintTest() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void PartWithExportParametersInReverseOrder() { TypeCatalog catalog = new TypeCatalog(typeof(PropertyExportWithChangedParameterOrder<,>)); diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/CatalogExportProviderTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/CatalogExportProviderTests.cs index 3784aa2c16bb1..eb3dfd6f9dc6b 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/CatalogExportProviderTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/CatalogExportProviderTests.cs @@ -339,6 +339,7 @@ public void CanBeCollectedAfterDispose() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void RemovingAndReAddingMultipleDefinitionsFromCatalog() { var fixedParts = new TypeCatalog(typeof(RootMultipleImporter), typeof(ExportedService)); diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/CompositionBatchTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/CompositionBatchTests.cs index 705051f7df188..48d9eebe73856 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/CompositionBatchTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/CompositionBatchTests.cs @@ -803,6 +803,7 @@ public void AddPart_ReturnedComposablePart_NullAsExportsArgumentToSetImports_Sho } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void AddPart_ReturnedComposablePart_ExportsArrayWithNullElementAsExportsArgumentToSetImports_ShouldThrowArgument() { CompositionBatch batch = new CompositionBatch(); diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/FilteredCatalogTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/FilteredCatalogTests.cs index 54695ae388754..7790a5c85a96a 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/FilteredCatalogTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/FilteredCatalogTests.cs @@ -81,6 +81,7 @@ public void GetExports() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void GetExportsWithGenerics() { var originalCatalog = new TypeCatalog(typeof(GenericExporter<,>), typeof(Exporter11), typeof(Exporter22)); diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/FilteredCatalogTransitiveClosureTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/FilteredCatalogTransitiveClosureTests.cs index 3b8a5534a54e7..0587151ba3ef6 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/FilteredCatalogTransitiveClosureTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/FilteredCatalogTransitiveClosureTests.cs @@ -8,6 +8,7 @@ namespace System.ComponentModel.Composition.Hosting { + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public class FilteredCatalogTransitiveClosureTests { public interface IContract1 { } diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/ScopeExtensionsTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/ScopeExtensionsTests.cs index 08100595b7ca0..019efb3a3871e 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/ScopeExtensionsTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/ScopeExtensionsTests.cs @@ -68,6 +68,7 @@ public void Imports_Throws_OnNullContractName() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void Imports() { ComposablePartDefinition part1 = typeof(PartImportingContract1).AsPart(); @@ -81,6 +82,7 @@ public void Imports() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void Imports_CardinalityIgnored_WhenNotSpecified() { ComposablePartDefinition part1 = typeof(PartImportingContract1).AsPart(); @@ -93,6 +95,7 @@ public void Imports_CardinalityIgnored_WhenNotSpecified() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void Imports_CardinalityNotIgnored_WhenSpecified() { ComposablePartDefinition part1 = typeof(PartImportingContract1).AsPart(); diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ImportAttributeTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ImportAttributeTests.cs index cb667c1bc96b8..bee7c342120ed 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ImportAttributeTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ImportAttributeTests.cs @@ -169,6 +169,7 @@ public void AllowRecomposition_ValueAsValueArgument_ShouldSetProperty() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ImportIndexers_ShouldThrowSomething() { var con = new CompositionContainer( diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/MetadataTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/MetadataTests.cs index b46e1a40af1ba..495646196fc71 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/MetadataTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/MetadataTests.cs @@ -273,6 +273,7 @@ public class ClassWithInvalidDuplicateMetadataOnMember } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void InvalidDuplicateMetadataOnMember_ShouldThrow() { var part = AttributedModelServices.CreatePart(new ClassWithInvalidDuplicateMetadataOnMember()); @@ -319,6 +320,7 @@ public class ClassWithDuplicateMetadataOnMember } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ValidDuplicateMetadataOnMember_ShouldDiscoverAllMetadata() { var container = ContainerFactory.Create(); diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/MetadataViewProviderTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/MetadataViewProviderTests.cs index fe2ef1eb4ea2f..8e3bea04518c3 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/MetadataViewProviderTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/MetadataViewProviderTests.cs @@ -93,6 +93,7 @@ public void GetMetadataView_InterfaceWithEvent_ShouldThrowNotSupportedException( } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15169", TestRuntimes.Mono)] public void GetMetadataView_InterfaceWithIndexer_ShouldThrowNotSupportedException() { var metadata = new Dictionary(); diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Primitives/CompositionScopeDefinitionTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Primitives/CompositionScopeDefinitionTests.cs index d5aa3170520af..631b09737c319 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Primitives/CompositionScopeDefinitionTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Primitives/CompositionScopeDefinitionTests.cs @@ -133,6 +133,7 @@ public void Parts_DelegateToCatalog() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void Constructor_PublicSurface() { var catalog = new TypeCatalog(typeof(FooImpl), typeof(FooImpl2), typeof(FooImpl2)); @@ -152,6 +153,7 @@ public void Constructor_PublicSurface_MultipleExportsPerPart() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void GetExports_DelegateToCatalog() { var parts = new TypeCatalog(typeof(FooImpl), typeof(FooImpl2), typeof(FooImpl2)).Parts; @@ -214,6 +216,7 @@ public void Notifications() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void Dispose() { var parts = new TypeCatalog(typeof(FooImpl), typeof(FooImpl2), typeof(FooImpl2)).Parts; @@ -250,6 +253,7 @@ public void Dispose() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SimpleComposition() { var catalog = new TypeCatalog(typeof(FooImpl), typeof(FooImpl2), typeof(FooImpl2)); diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ReflectionModel/ReflectionComposablePartTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ReflectionModel/ReflectionComposablePartTests.cs index 8b90ffe7e6b23..dbaf6728bed81 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ReflectionModel/ReflectionComposablePartTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ReflectionModel/ReflectionComposablePartTests.cs @@ -141,6 +141,7 @@ public void OnComposed_WhenDisposed_ShouldThrowObjectDisposed() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void OnComposed_MissingPostImportsOnInstance_ShouldThrowComposition() { var part = CreatePart(new MySharedPartExport()); @@ -153,6 +154,7 @@ public void OnComposed_MissingPostImportsOnInstance_ShouldThrowComposition() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void OnComposed_ProperlyComposed_ShouldSucceed() { var import = new TrivialImporter(); @@ -167,6 +169,7 @@ public void OnComposed_ProperlyComposed_ShouldSucceed() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void OnComposed_UnhandledExceptionThrowInOnImportsSatisfied_ShouldThrowComposablePart() { var part = CreatePart(typeof(ExceptionDuringINotifyImport)); @@ -180,6 +183,7 @@ public void OnComposed_UnhandledExceptionThrowInOnImportsSatisfied_ShouldThrowCo } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SetImport_WhenDisposed_ShouldThrowObjectDisposed() { var part = CreateDefaultDisposablePart(); @@ -205,6 +209,7 @@ public void SetImport_NullAsImportDefinitionArgument_ShouldThrowArgumentNull() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SetImport_NullAsExportsArgument_ShouldThrowArgumentNull() { var part = CreatePart(typeof(MySharedPartExport)); @@ -217,6 +222,7 @@ public void SetImport_NullAsExportsArgument_ShouldThrowArgumentNull() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SetImport_ExportsArrayWithNullElementAsExportsArgument_ShouldThrowArgument() { var part = CreatePart(typeof(MySharedPartExport)); @@ -242,6 +248,7 @@ public void SetImport_WrongDefinitionAsDefinitionArgument_ShouldThrowArgument() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SetImport_SetNonRecomposableDefinitionAsDefinitionArgumentAfterOnComposed_ShouldThrowInvalidOperation() { var part = CreatePartWithNonRecomposableImport(); @@ -257,6 +264,7 @@ public void SetImport_SetNonRecomposableDefinitionAsDefinitionArgumentAfterOnCom } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SetImport_ZeroOrOneDefinitionAsDefinitionArgumentAndTwoExportsAsExportsArgument_ShouldThrowArgument() { var part = CreatePartWithZeroOrOneImport(); @@ -271,6 +279,7 @@ public void SetImport_ZeroOrOneDefinitionAsDefinitionArgumentAndTwoExportsAsExpo } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SetImport_ExactlyOneDefinitionAsDefinitionArgumentAndTwoExportsAsExportsArgument_ShouldThrowArgument() { var part = CreatePartWithExactlyOneImport(); @@ -285,6 +294,7 @@ public void SetImport_ExactlyOneDefinitionAsDefinitionArgumentAndTwoExportsAsExp } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SetImport_ExactlyOneDefinitionAsDefinitionArgumentAndEmptyExportsAsExportsArgument_ShouldThrowArgument() { var part = CreatePartWithExactlyOneImport(); @@ -299,6 +309,7 @@ public void SetImport_ExactlyOneDefinitionAsDefinitionArgumentAndEmptyExportsAsE } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SetImport_WrongTypeExportGiven_ShouldThrowComposablePart() { var part = CreatePart(new MySharedPartExport()); @@ -311,6 +322,7 @@ public void SetImport_WrongTypeExportGiven_ShouldThrowComposablePart() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SetImport_SetPostValueAndSetAgainOnInstance_ShouldSetProperty() { var import = new MySharedPartExport(); @@ -334,6 +346,7 @@ public void SetImport_SetPostValueAndSetAgainOnInstance_ShouldSetProperty() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void GetExportedValue_WhenDisposed_ShouldThrowObjectDisposed() { var part = CreateDefaultDisposablePart(); @@ -371,6 +384,7 @@ public void GetExportedValue_WrongDefinitionAsDefinitionArgument_ShouldThrowArgu } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void GetExportedValue_MissingPrerequisiteImport_ShouldThrowInvalidOperation() { var part = CreatePart(typeof(SimpleConstructorInjectedObject)); @@ -409,6 +423,7 @@ public void GetExportedValue_UnhandledExceptionThrowInConstructor_ShouldThrowCom } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void GetExportedValue_GetObjectAfterSetPreImport_ShouldGetValue() { var part = CreatePart(typeof(SimpleConstructorInjectedObject)); @@ -425,6 +440,7 @@ public void GetExportedValue_GetObjectAfterSetPreImport_ShouldGetValue() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void GetExportedValue_GetObjectAfterSetPostImport_ShouldGetValue() { var part = CreatePart(typeof(MySharedPartExport)); @@ -442,6 +458,7 @@ public void GetExportedValue_GetObjectAfterSetPostImport_ShouldGetValue() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void GetExportedValue_CallMultipleTimes_ShouldReturnSame() { var part = CreatePart(typeof(MySharedPartExport)); @@ -471,6 +488,7 @@ public void GetExportedValue_FromStaticClass_ShouldReturnExport() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void GetExportedValue_OptionalPostNotGiven_ShouldReturnValidObject() { var part = CreatePart(typeof(ClassWithOptionalPostImport)); @@ -483,6 +501,7 @@ public void GetExportedValue_OptionalPostNotGiven_ShouldReturnValidObject() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void GetExportedValue_OptionalPreNotGiven_ShouldReturnValidObject() { var part = CreatePart(typeof(ClassWithOptionalPreImport)); @@ -548,6 +567,7 @@ public class TypeExporter } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void GetExportedObjectAlwaysReturnsSameReference_ForProperty() { var cp = CreatePart(new PropertyExporter()); @@ -558,6 +578,7 @@ public void GetExportedObjectAlwaysReturnsSameReference_ForProperty() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void GetExportedObjectAlwaysReturnsSameReference_ForField() { var exporter = new FieldExporter(); @@ -628,6 +649,7 @@ void InvalidImport() { } } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ImportDefinitions_ImportWithCustomAttributeImports() { var part = CreatePart(typeof(ImportWithCustomImport)); @@ -661,6 +683,7 @@ void InvalidImportMany() { } } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ImportDefinitions_ImportManyWithCustomAttributeImportManys() { var part = CreatePart(typeof(ImportManyWithCustomImportMany)); @@ -729,6 +752,7 @@ void InvalidImportingConstructor() { } } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ImportDefinitions_ImportingConstructorWithCustomAttributeImportingConstructors() { var part = CreatePart(typeof(ImportingConstructorWithCustomImportingConstructor)); @@ -741,6 +765,7 @@ public void ImportDefinitions_ImportingConstructorWithCustomAttributeImportingCo } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ImportDefinitions_ImportingConstructorWithCustomAttributeImportingConstructorsWithAllowMultiple_ShouldNotThrowInvalidOperation() { var part = CreatePart(typeof(ImportingConstructorWithCustomImportingConstructorAllowMultiple)); diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ScopeExportFactoryTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ScopeExportFactoryTests.cs index 15e8c016a8965..c2675ed408f8d 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ScopeExportFactoryTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ScopeExportFactoryTests.cs @@ -8,6 +8,7 @@ namespace System.ComponentModel.Composition { + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public class ScopeExportFactoryTests { public interface IFooContract @@ -269,6 +270,7 @@ public void ExportFactoryCausesRejectionBasedOnCardinality() } } + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public class ScopeExportFactoryWithPublicSurface { [Export] public class ClassA { } @@ -311,6 +313,7 @@ public void FilteredScopeFactoryOfTM_ShouldSucceed() } } + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public class ScopeFactoryAutoResolveFromAncestorScope { [Export] public class Root { } @@ -368,6 +371,7 @@ public void ScopeFactoryAutoResolveFromAncestorScopeShouldSucceed() } } + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public class DeeplyNestedCatalog { [Export] @@ -446,6 +450,7 @@ public void DeeplyNestedCatalogOverlappedCatalog_ShouldWork() } } + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public class LocalSharedNonLocalInSameContainer { [Export] @@ -542,6 +547,7 @@ public void LocalSharedNonLocalInSameContainer_ShouldSucceed() } } + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public class ScopeBridgingAdaptersConstructorInjection { [Export] @@ -630,6 +636,7 @@ public void ScopeBridgingAdapters_ShouldSucceed() } } + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public class ScopeBridgingAdaptersImportExportProperty { [Export] @@ -713,6 +720,7 @@ public void ScopeBridgingAdaptersImportExportProperty_ShouldSucceed() } } + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public class SelfExportFromExportFactory { [Export] diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ScopedCompositionServicetests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ScopedCompositionServicetests.cs index d33b20462eb61..76d0efa06d755 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ScopedCompositionServicetests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ScopedCompositionServicetests.cs @@ -8,6 +8,7 @@ namespace System.ComponentModel.Composition { + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public class ScopedCompositionServiceTests { [Export] diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/Integration/AdaptingCollectionTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/Integration/AdaptingCollectionTests.cs index 6cd24c4e13ab9..45b6472c91db9 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/Integration/AdaptingCollectionTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/Integration/AdaptingCollectionTests.cs @@ -155,6 +155,7 @@ public bool Remove(Lazy item) #endregion } + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public class AdaptingCollectionTests { public interface IContract { } diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/Integration/CatalogFilteringTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/Integration/CatalogFilteringTests.cs index 516a6689d3ac9..f981f0dc8a991 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/Integration/CatalogFilteringTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/Integration/CatalogFilteringTests.cs @@ -9,6 +9,7 @@ namespace System.ComponentModel.Composition { + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public class CatalogFilteringTests { [Fact] diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/Integration/CompositionContainerAttributedModelCycleTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/Integration/CompositionContainerAttributedModelCycleTests.cs index 73bf3e56db448..cee2038786458 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/Integration/CompositionContainerAttributedModelCycleTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/Integration/CompositionContainerAttributedModelCycleTests.cs @@ -30,6 +30,7 @@ public class CompositionContainerAttributedModelCycleTests // [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void APrerequisiteDependsOnBPrerequisite_ShouldThrowComposition() { AssertCycle(typeof(APrerequisiteDependsOnBPrerequisite), @@ -37,6 +38,7 @@ public void APrerequisiteDependsOnBPrerequisite_ShouldThrowComposition() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void APrerequisiteDependsOnBPost_ShouldThrowComposition() { AssertCycle(typeof(APrerequisiteDependsOnBPost), @@ -52,6 +54,7 @@ public void APrerequisiteDependsOnBNone_ShouldNotThrow() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void APostDependsOnBPrerequisite_ShouldThrowComposition() { AssertCycle(typeof(APostDependsOnBPrerequisite), diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/Integration/ConstructorInjectionTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/Integration/ConstructorInjectionTests.cs index e4afd108a306a..877c50accbfbd 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/Integration/ConstructorInjectionTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/Integration/ConstructorInjectionTests.cs @@ -13,6 +13,7 @@ namespace Tests.Integration public class ConstructorInjectionTests { [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SimpleConstructorInjection() { var container = ContainerFactory.Create(); @@ -177,6 +178,7 @@ public InvalidImportManyCI( } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ImportMany_ConstructorParameter_OnNonAssiganbleType_ShouldThrowCompositionException() { var container = ContainerFactory.CreateWithAttributedCatalog(typeof(InvalidImportManyCI)); diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/Integration/DelayLoadingTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/Integration/DelayLoadingTests.cs index 3bc754a234c1c..57d9d24e1de63 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/Integration/DelayLoadingTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/Integration/DelayLoadingTests.cs @@ -14,6 +14,7 @@ namespace Tests.Integration { + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public class DelayLoadingTests { [Fact] diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/Integration/DelegateCompositionTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/Integration/DelegateCompositionTests.cs index 7bd54f8be79c7..54f76515302b2 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/Integration/DelegateCompositionTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/Integration/DelegateCompositionTests.cs @@ -175,6 +175,7 @@ public class ImportCustomExportedDelegates } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void CustomExportedDelegate_ShouldWork() { var container = ContainerFactory.CreateWithAttributedCatalog( diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/Integration/DiscoveryTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/Integration/DiscoveryTests.cs index fec0fb4cca21d..69230be2246ed 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/Integration/DiscoveryTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/Integration/DiscoveryTests.cs @@ -72,6 +72,7 @@ public class DerivedBaseWithNonPublicImportAndExport : BaseWithNonPublicImportAn } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void Import_PrivateOnClass_ShouldSetImport() { var container = ContainerFactory.CreateWithAttributedCatalog(typeof(BaseWithNonPublicImportAndExport)); @@ -82,6 +83,7 @@ public void Import_PrivateOnClass_ShouldSetImport() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void Import_PrivateOnBase_ShouldSetImport() { var container = ContainerFactory.CreateWithAttributedCatalog(typeof(DerivedBaseWithNonPublicImportAndExport)); @@ -120,6 +122,7 @@ public class ClassWithInterfaceInheritedImport : InterfaceWithImport } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void Import_InheritImportFromInterface_ShouldExposeImport() { var container = ContainerFactory.CreateWithAttributedCatalog( @@ -168,6 +171,7 @@ public class DerivedWithOverrideExport : BaseWithVirtualExport } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void Export_BaseAndDerivedShouldAmountInTwoExports() { var container = ContainerFactory.CreateWithAttributedCatalog( @@ -303,6 +307,7 @@ public class Plugin1 : Plugin } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void Export_Plugin1() { var container = ContainerFactory.CreateWithAttributedCatalog( @@ -327,6 +332,7 @@ public override int Version } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void Export_Plugin2() { var container = ContainerFactory.CreateWithAttributedCatalog( @@ -354,6 +360,7 @@ public override int Version } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void Export_Plugin3() { var container = ContainerFactory.CreateWithAttributedCatalog( @@ -386,6 +393,7 @@ public override int Version } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void Export_Plugin4() { var container = ContainerFactory.CreateWithAttributedCatalog( @@ -406,6 +414,7 @@ public class MyPlugin : IPlugin } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void Export_MyPlugin() { var container = ContainerFactory.CreateWithAttributedCatalog( @@ -441,6 +450,7 @@ public class MyToolbarPlugin : IToolbarPlugin } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void TestInterfaces() { var container = ContainerFactory.CreateWithAttributedCatalog( @@ -499,6 +509,7 @@ public override int VirtualImport } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void Import_VirtualPropertyOverrideWithSameContract_ShouldSucceed() { var container = ContainerFactory.Create(); @@ -530,6 +541,7 @@ public override int VirtualImport } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void Import_VirtualPropertyOverrideWithDifferentContract_ShouldSucceed() { var container = ContainerFactory.Create(); @@ -657,6 +669,7 @@ public void Shutdown() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void DiscoverAddinsWithCombinedCustomExportAndMetadataAttribute() { var container = ContainerFactory.CreateWithAttributedCatalog(typeof(Addin1), typeof(Addin2), typeof(Addin3)); @@ -715,6 +728,7 @@ public int Property } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void Test_CustomInheritedExportAttribute_OnInterface() { var container = ContainerFactory.CreateWithAttributedCatalog(typeof(UsesCustomInheritedExportOnInterface)); @@ -737,6 +751,7 @@ public DerivedFromBaseWithCustomInheritedExport() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void Test_CustomInheritedExportAttribute_OnBaseClass() { var container = ContainerFactory.CreateWithAttributedCatalog(typeof(DerivedFromBaseWithCustomInheritedExport)); diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/Integration/LifetimeTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/Integration/LifetimeTests.cs index b16921ec3b958..87c4784eeac8d 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/Integration/LifetimeTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/Integration/LifetimeTests.cs @@ -55,6 +55,7 @@ public void Dispose() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void PartAddedViaAddExportedValue_ShouldNotBeDisposedWithContainer() { var container = new CompositionContainer(); @@ -68,6 +69,7 @@ public void PartAddedViaAddExportedValue_ShouldNotBeDisposedWithContainer() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void PartAddedTwice_AppearsTwice() { // You probably shouldn't be adding a part to the container twice, but it's not something we're going to check for and throw an exception on @@ -105,6 +107,7 @@ public void AnyPart_Simple_ShouldNotBeCollected() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void AnyPart_Disposable_ShouldNotBeCollected() { var catalog = new TypeCatalog(typeof(AnyPartDisposable)); @@ -119,6 +122,7 @@ public void AnyPart_Disposable_ShouldNotBeCollected() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void AnyPart_Disposable_ShouldBeDisposedWithContainer() { var catalog = new TypeCatalog(typeof(AnyPartDisposable)); @@ -134,6 +138,7 @@ public void AnyPart_Disposable_ShouldBeDisposedWithContainer() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void AnyPart_RecomposabeImport_ShouldNotBeCollected() { var catalog = new TypeCatalog(typeof(AnyPartRecomposable)); @@ -165,6 +170,7 @@ public void AnyPart_RecomposabeImport_ShouldNotBeCollected() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void AnyPart_DisposableRecomposabeImport_ShouldNotBeCollected() { var catalog = new TypeCatalog(typeof(AnyPartDisposableRecomposable)); @@ -259,6 +265,7 @@ public void SharedPart_Simple_ShouldNotBeCollected() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SharedPart_Disposable_ShouldNotBeCollected() { var catalog = new TypeCatalog(typeof(SharedPartDisposable)); @@ -275,6 +282,7 @@ public void SharedPart_Disposable_ShouldNotBeCollected() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SharedPart_Disposable_ShouldBeDisposedWithContainer() { var catalog = new TypeCatalog(typeof(SharedPartDisposable)); @@ -290,6 +298,7 @@ public void SharedPart_Disposable_ShouldBeDisposedWithContainer() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SharedPart_RecomposabeImport_ShouldNotBeCollected() { var catalog = new TypeCatalog(typeof(SharedPartRecomposable)); @@ -322,6 +331,7 @@ public void SharedPart_RecomposabeImport_ShouldNotBeCollected() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void SharedPart_DisposableRecomposabeImport_ShouldNotBeCollected() { var catalog = new TypeCatalog(typeof(SharedPartDisposableRecomposable)); @@ -414,6 +424,7 @@ public void Dispose() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void NonSharedPart_Disposable_ShouldNotBeCollected() { var catalog = new TypeCatalog(typeof(NonSharedPartDisposable)); @@ -430,6 +441,7 @@ public void NonSharedPart_Disposable_ShouldNotBeCollected() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void NonSharedPart_Disposable_ShouldBeDisposedWithContainer() { var catalog = new TypeCatalog(typeof(NonSharedPartDisposable)); @@ -445,6 +457,7 @@ public void NonSharedPart_Disposable_ShouldBeDisposedWithContainer() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void NonSharedPart_RecomposableImport_WithReference_ShouldNotBeCollected() { var catalog = new TypeCatalog(typeof(NonSharedPartRecomposable)); @@ -477,6 +490,7 @@ public void NonSharedPart_RecomposableImport_WithReference_ShouldNotBeCollected( } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void NonSharedPart_DisposableRecomposabeImport_NoReference_ShouldNotBeCollected() { var catalog = new TypeCatalog(typeof(NonSharedPartDisposableRecomposable)); @@ -531,6 +545,7 @@ public class NonSharedState } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void NonSharedPart_TwoRecomposablePartsSameExportedValue() { // This test is primarily used to ensure that we allow for multiple parts to be associated @@ -590,6 +605,7 @@ private static CompositionContainer GetContainer() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void GetReleaseExport_SharedRoot_ShouldNotDisposeChain() { var container = GetContainer(); @@ -604,6 +620,7 @@ public void GetReleaseExport_SharedRoot_ShouldNotDisposeChain() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void AddRemovePart_SharedRoot_ShouldNotDisposeChain() { var container = GetContainer(); @@ -623,6 +640,7 @@ public void AddRemovePart_SharedRoot_ShouldNotDisposeChain() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ContainerDispose_SharedRoot_ShouldDisposeChain() { var container = GetContainer(); @@ -637,6 +655,7 @@ public void ContainerDispose_SharedRoot_ShouldDisposeChain() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void GetReleaseExport_NonSharedRoot_ShouldDisposeChain() { var container = GetContainer(); @@ -667,6 +686,7 @@ public void GetReleaseExport_NonSharedRoot_ShouldDisposeChain() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void GetReleaseExport_NonSharedRoot_ShouldDisposeChain_WithMetadata() { var container = GetContainer(); @@ -697,6 +717,7 @@ public void GetReleaseExport_NonSharedRoot_ShouldDisposeChain_WithMetadata() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ReleaseExports_ShouldDispose_NonSharedParts() { var container = GetContainer(); @@ -717,6 +738,7 @@ public void ReleaseExports_ShouldDispose_NonSharedParts() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void AddRemovePart_NonSharedRoot_ShouldDisposeChain() { var container = GetContainer(); @@ -736,6 +758,7 @@ public void AddRemovePart_NonSharedRoot_ShouldDisposeChain() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ContainerDispose_NonSharedRoot_ShouldNotDisposeChain() { var container = GetContainer(); @@ -750,6 +773,7 @@ public void ContainerDispose_NonSharedRoot_ShouldNotDisposeChain() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void GetReleaseExport_NonSharedPart_ShouldNotRecomposeAfterRelease() { var catalog = new TypeCatalog(typeof(NonSharedPartRecomposable)); @@ -777,6 +801,7 @@ public void GetReleaseExport_NonSharedPart_ShouldNotRecomposeAfterRelease() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void GetExportManualDisposeThenRecompose_NonSharedDisposableRecomposablePart_ShouldThrowComposition() { var catalog = new TypeCatalog(typeof(NonSharedPartDisposableRecomposable)); @@ -817,6 +842,7 @@ public class MyImporter } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void RecomposeCausesOldImportedValuesToBeDisposed() { var cat = new AggregateCatalog(); @@ -859,6 +885,7 @@ private static CompositionContainer CreateParentChildContainerWithNonSharedImpor } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ChildContainerGetReleaseExport_NonSharedRoot_ShouldDisposeChain() { var child = CreateParentChildContainerWithNonSharedImporter(); @@ -873,6 +900,7 @@ public void ChildContainerGetReleaseExport_NonSharedRoot_ShouldDisposeChain() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ChildContainerAddRemovePart_NonSharedRoot_ShouldDisposeChain() { var child = CreateParentChildContainerWithNonSharedImporter(); @@ -892,6 +920,7 @@ public void ChildContainerAddRemovePart_NonSharedRoot_ShouldDisposeChain() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ChildContainerAddRemovePart_NonSharedRoot_ShouldNotDisposeChain() { var child = CreateParentChildContainerWithNonSharedImporter(); @@ -1262,6 +1291,7 @@ public void GetReleaseExport_NonSharedPart_ShouldCollectWholeObjectChain() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public void ReleaseExports_ShouldWorkWithExportCollection() { var container = GetContainer(); diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/Integration/RecompositionTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/Integration/RecompositionTests.cs index 6e7b4812366ca..7455e6af70bd9 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/Integration/RecompositionTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/Integration/RecompositionTests.cs @@ -11,6 +11,7 @@ namespace Tests.Integration { + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public class RecompositionTests { public class Class_OptIn_AllowRecompositionImports diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/Integration/RejectionTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/Integration/RejectionTests.cs index 51d84c355e62b..76690fbb07770 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/Integration/RejectionTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/Integration/RejectionTests.cs @@ -12,6 +12,7 @@ namespace Tests.Integration { + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public class RejectionTests { public interface IExtension diff --git a/src/libraries/System.ComponentModel.Composition/tests/System/Integration/RequiredCreationPolicyTests.cs b/src/libraries/System.ComponentModel.Composition/tests/System/Integration/RequiredCreationPolicyTests.cs index 74505c8891f03..82801b0855efa 100644 --- a/src/libraries/System.ComponentModel.Composition/tests/System/Integration/RequiredCreationPolicyTests.cs +++ b/src/libraries/System.ComponentModel.Composition/tests/System/Integration/RequiredCreationPolicyTests.cs @@ -12,6 +12,7 @@ namespace Tests.Integration { + [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] public class RequiredCreationPolicyTests { // Matrix that details which policy to use for a given part to satisfy a given import. diff --git a/src/libraries/System.Data.Common/tests/System/Data/Common/DbConnectionTests.cs b/src/libraries/System.Data.Common/tests/System/Data/Common/DbConnectionTests.cs index fd809e7101bf6..c6d0ae306751e 100644 --- a/src/libraries/System.Data.Common/tests/System/Data/Common/DbConnectionTests.cs +++ b/src/libraries/System.Data.Common/tests/System/Data/Common/DbConnectionTests.cs @@ -146,6 +146,7 @@ public void CanBeFinalized() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15180", TestRuntimes.Mono)] public void ProviderFactoryTest() { DbProviderFactoryConnection con = new DbProviderFactoryConnection(); diff --git a/src/libraries/System.Diagnostics.StackTrace/tests/StackFrameTests.cs b/src/libraries/System.Diagnostics.StackTrace/tests/StackFrameTests.cs index 2fb5fe982632f..849b3bb5a9d81 100644 --- a/src/libraries/System.Diagnostics.StackTrace/tests/StackFrameTests.cs +++ b/src/libraries/System.Diagnostics.StackTrace/tests/StackFrameTests.cs @@ -34,6 +34,7 @@ public void Ctor_FNeedFileInfo(bool fNeedFileInfo) } [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/15183", TestRuntimes.Mono)] [InlineData(StackFrame.OFFSET_UNKNOWN)] [InlineData(0)] [InlineData(1)] @@ -44,6 +45,7 @@ public void Ctor_SkipFrames(int skipFrames) } [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/15187", TestRuntimes.Mono)] [InlineData(StackFrame.OFFSET_UNKNOWN, true)] [InlineData(0, true)] [InlineData(1, true)] @@ -91,6 +93,7 @@ public void Ctor_Filename_LineNumber(string fileName, int lineNumber) } [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/15184", TestRuntimes.Mono)] [InlineData(null, StackFrame.OFFSET_UNKNOWN, 0)] [InlineData("", 0, StackFrame.OFFSET_UNKNOWN)] [InlineData("FileName", 1, 2)] @@ -115,6 +118,7 @@ public static IEnumerable ToString_TestData() } [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/15186", TestRuntimes.Mono)] [MemberData(nameof(ToString_TestData))] public void ToString_Invoke_ReturnsExpected(StackFrame stackFrame, string expectedToString) { diff --git a/src/libraries/System.Diagnostics.StackTrace/tests/StackTraceTests.cs b/src/libraries/System.Diagnostics.StackTrace/tests/StackTraceTests.cs index 27c3b54e60a52..0915dd2537766 100644 --- a/src/libraries/System.Diagnostics.StackTrace/tests/StackTraceTests.cs +++ b/src/libraries/System.Diagnostics.StackTrace/tests/StackTraceTests.cs @@ -143,6 +143,7 @@ public void Ctor_EmptyException_FNeedFileInfo(bool fNeedFileInfo) } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/31796", TestRuntimes.Mono)] [InlineData(0)] [InlineData(1)] public void Ctor_Exception_SkipFrames(int skipFrames) @@ -181,6 +182,7 @@ public void Ctor_EmptyException_SkipFrames() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/31796", TestRuntimes.Mono)] [InlineData(0, true)] [InlineData(1, true)] [InlineData(0, false)] @@ -272,6 +274,7 @@ public void GetFrame_InvalidIndex_ReturnsNull() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/31797", TestRuntimes.Mono)] [MemberData(nameof(ToString_TestData))] public void ToString_Invoke_ReturnsExpected(StackTrace stackTrace, string expectedToString) { diff --git a/src/libraries/System.Drawing.Common/tests/Imaging/ImageAttributesTests.cs b/src/libraries/System.Drawing.Common/tests/Imaging/ImageAttributesTests.cs index 1e45c9d89a7dc..940433cee61f4 100644 --- a/src/libraries/System.Drawing.Common/tests/Imaging/ImageAttributesTests.cs +++ b/src/libraries/System.Drawing.Common/tests/Imaging/ImageAttributesTests.cs @@ -282,6 +282,7 @@ public static IEnumerable ColorMatrixFlag_InvalidFlags_TestData() [ConditionalTheory(Helpers.IsDrawingSupported)] [MemberData(nameof(ColorAdjustType_InvalidTypes_TestData))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2337", TestRuntimes.Mono)] public void SetColorMatrix_InvalidFlags_ThrowsArgumentException(ColorMatrixFlag flag) { using (var imageAttr = new ImageAttributes()) diff --git a/src/libraries/System.Dynamic.Runtime/tests/Dynamic.OverloadResolution/Conformance.dynamic.overloadResolution.Methods.1class2methods.cs b/src/libraries/System.Dynamic.Runtime/tests/Dynamic.OverloadResolution/Conformance.dynamic.overloadResolution.Methods.1class2methods.cs index 870d9a20a4590..7c1ae18d39fe2 100644 --- a/src/libraries/System.Dynamic.Runtime/tests/Dynamic.OverloadResolution/Conformance.dynamic.overloadResolution.Methods.1class2methods.cs +++ b/src/libraries/System.Dynamic.Runtime/tests/Dynamic.OverloadResolution/Conformance.dynamic.overloadResolution.Methods.1class2methods.cs @@ -3995,6 +3995,7 @@ public void Method(int f, ref object x) public class Test { [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/14906", TestRuntimes.Mono)] public static void DynamicCSharpRunTest() { Assert.Equal(0, MainMethod(null)); diff --git a/src/libraries/System.Linq.Expressions/tests/Array/ArrayAccessTests.cs b/src/libraries/System.Linq.Expressions/tests/Array/ArrayAccessTests.cs index 61a26681acbf4..9ddda2d799d9d 100644 --- a/src/libraries/System.Linq.Expressions/tests/Array/ArrayAccessTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/Array/ArrayAccessTests.cs @@ -13,6 +13,7 @@ public static class ArrayAccessTests public static IEnumerable Ranks() => Enumerable.Range(1, 5).Select(i => new object[] {i}); [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNonZeroLowerBoundArraySupported))] + [ActiveIssue("https://github.com/mono/mono/issues/14920", TestRuntimes.Mono)] [ClassData(typeof(CompilationTypes))] public static void ArrayAccess_MultiDimensionalOf1(bool useInterpreter) { @@ -31,6 +32,7 @@ public static void ArrayAccess_MultiDimensionalOf1(bool useInterpreter) } [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNonZeroLowerBoundArraySupported))] + [ActiveIssue("https://github.com/mono/mono/issues/14920", TestRuntimes.Mono)] [ClassData(typeof(CompilationTypes))] public static void ArrayIndex_MultiDimensionalOf1(bool useInterpreter) { @@ -78,6 +80,7 @@ public static void UnreadableIndex() } [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNonZeroLowerBoundArraySupported))] + [ActiveIssue("https://github.com/mono/mono/issues/14921", TestRuntimes.Mono)] [ClassData(typeof(CompilationTypes))] public static void NonZeroBasedOneDimensionalArrayAccess(bool useInterpreter) { diff --git a/src/libraries/System.Linq.Expressions/tests/Array/ArrayIndexTests.cs b/src/libraries/System.Linq.Expressions/tests/Array/ArrayIndexTests.cs index d09e34c661a9d..1b2145ed26e0d 100644 --- a/src/libraries/System.Linq.Expressions/tests/Array/ArrayIndexTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/Array/ArrayIndexTests.cs @@ -2771,6 +2771,7 @@ public static void UnreadableIndex() } [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNonZeroLowerBoundArraySupported))] + [ActiveIssue("https://github.com/mono/mono/issues/14930", TestRuntimes.Mono)] [ClassData(typeof(CompilationTypes))] public static void NonZeroBasedOneDimensionalArrayIndex(bool useInterpreter) { @@ -2792,6 +2793,7 @@ public static void NonZeroBasedOneDimensionalArrayIndex(bool useInterpreter) } [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsNonZeroLowerBoundArraySupported))] + [ActiveIssue("https://github.com/mono/mono/issues/14930", TestRuntimes.Mono)] [ClassData(typeof(CompilationTypes))] public static void NonZeroBasedOneDimensionalArrayIndexMethod(bool useInterpreter) { diff --git a/src/libraries/System.Linq.Expressions/tests/Array/NewArrayBoundsTests.cs b/src/libraries/System.Linq.Expressions/tests/Array/NewArrayBoundsTests.cs index 0e970f0a4f1ce..bfb2db1f2f5da 100644 --- a/src/libraries/System.Linq.Expressions/tests/Array/NewArrayBoundsTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/Array/NewArrayBoundsTests.cs @@ -131,6 +131,7 @@ public static IEnumerable TestData() } [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/14912", TestRuntimes.Mono)] [PerCompilationType(nameof(TestData))] public static void NewArrayBounds(Type arrayType, object size, Type sizeType, object defaultValue, bool useInterpreter) { @@ -287,6 +288,7 @@ public static void UpdateNullThrows() } [Theory, ClassData(typeof(CompilationTypes))] + [ActiveIssue("https://github.com/mono/mono/issues/14933", TestRuntimes.Mono)] public static void SingleNegativeBoundErrorMessage(bool useInterpreter) { string localizedMessage = null; @@ -307,6 +309,7 @@ public static void SingleNegativeBoundErrorMessage(bool useInterpreter) } [Theory, ClassData(typeof(CompilationTypes))] + [ActiveIssue("https://github.com/mono/mono/issues/14934", TestRuntimes.Mono)] public static void MultipleNegativeBoundErrorMessage(bool useInterpreter) { string localizedMessage = null; diff --git a/src/libraries/System.Linq.Expressions/tests/BinaryOperators/Coalesce/BinaryCoalesceTests.cs b/src/libraries/System.Linq.Expressions/tests/BinaryOperators/Coalesce/BinaryCoalesceTests.cs index 37fb0129b94bd..98ec223eefef4 100644 --- a/src/libraries/System.Linq.Expressions/tests/BinaryOperators/Coalesce/BinaryCoalesceTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/BinaryOperators/Coalesce/BinaryCoalesceTests.cs @@ -497,6 +497,7 @@ public static void CoalesceReferenceToValueType(bool useInterpreter) #if FEATURE_COMPILE [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/14919", TestRuntimes.Mono)] public static void VerifyIL_NullableIntCoalesceToNullableInt() { ParameterExpression x = Expression.Parameter(typeof(int?)); diff --git a/src/libraries/System.Linq.Expressions/tests/Block/BlockTests.cs b/src/libraries/System.Linq.Expressions/tests/Block/BlockTests.cs index 18d54ffbc97b2..07fb497d31ad7 100644 --- a/src/libraries/System.Linq.Expressions/tests/Block/BlockTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/Block/BlockTests.cs @@ -227,6 +227,7 @@ public static void ToStringTest() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/14919", TestRuntimes.Mono)] public static void InsignificantBlock() { Expression nop = Expression.Lambda( diff --git a/src/libraries/System.Linq.Expressions/tests/CompilerTests.cs b/src/libraries/System.Linq.Expressions/tests/CompilerTests.cs index 531fe42e0f3b7..4069ca6a99d53 100644 --- a/src/libraries/System.Linq.Expressions/tests/CompilerTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/CompilerTests.cs @@ -167,6 +167,7 @@ public static void VariableBinder_CatchBlock_Filter2() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/14919", TestRuntimes.Mono)] public static void VerifyIL_Simple() { Expression> f = () => Math.Abs(42); @@ -183,6 +184,7 @@ .maxstack 1 } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/14919", TestRuntimes.Mono)] public static void VerifyIL_Exceptions() { ParameterExpression x = Expression.Parameter(typeof(int), "x"); @@ -243,6 +245,7 @@ [0] int32 } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/14919", TestRuntimes.Mono)] public static void VerifyIL_Closure1() { Expression>> f = () => () => 42; @@ -277,6 +280,7 @@ .maxstack 1 } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/14919", TestRuntimes.Mono)] public static void VerifyIL_Closure2() { Expression>> f = x => () => x; @@ -334,6 +338,7 @@ [0] object[] } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/14919", TestRuntimes.Mono)] public static void VerifyIL_Closure3() { // Using an unchecked addition to ensure that an add instruction is emitted (and not add.ovf) diff --git a/src/libraries/System.Linq.Expressions/tests/ExceptionHandling/ExceptionHandlingExpressions.cs b/src/libraries/System.Linq.Expressions/tests/ExceptionHandling/ExceptionHandlingExpressions.cs index 8d1aed9ff0573..b9b5103047f20 100644 --- a/src/libraries/System.Linq.Expressions/tests/ExceptionHandling/ExceptionHandlingExpressions.cs +++ b/src/libraries/System.Linq.Expressions/tests/ExceptionHandling/ExceptionHandlingExpressions.cs @@ -224,6 +224,7 @@ public void ThrownNonExceptionPassesThroughNonMatchingHandlers(bool useInterpret } [Theory, ClassData(typeof(CompilationTypes))] + [ActiveIssue("https://github.com/mono/mono/issues/14925", TestRuntimes.Mono)] public void ExpressionsUnwrapeExternallyThrownRuntimeWrappedException(bool useInterpreter) { ParameterExpression exRWE = Expression.Variable(typeof(RuntimeWrappedException)); @@ -931,6 +932,7 @@ public void FilterBeforeInnerFault(bool useInterpreter) } [Theory, ClassData(typeof(CompilationTypes))] + [ActiveIssue("https://github.com/mono/mono/issues/14924", TestRuntimes.Mono)] public void ExceptionThrownInFilter(bool useInterpreter) { // An exception in a filter should be eaten and the filter fail. diff --git a/src/libraries/System.Linq.Expressions/tests/Goto/Return.cs b/src/libraries/System.Linq.Expressions/tests/Goto/Return.cs index bccb6a921a9b0..e2cae0fc0addc 100644 --- a/src/libraries/System.Linq.Expressions/tests/Goto/Return.cs +++ b/src/libraries/System.Linq.Expressions/tests/Goto/Return.cs @@ -296,6 +296,7 @@ public static void DoNothing() } [Theory, ClassData(typeof(CompilationTypes))] + [ActiveIssue("https://github.com/mono/mono/issues/14919", TestRuntimes.Mono)] public void TailCallThenReturn(bool useInterpreter) { LabelTarget target = Expression.Label(); diff --git a/src/libraries/System.Linq.Expressions/tests/IndexExpression/IndexExpressionTests.cs b/src/libraries/System.Linq.Expressions/tests/IndexExpression/IndexExpressionTests.cs index 1a1df7f7e5f73..23c6c7aa9b2a1 100644 --- a/src/libraries/System.Linq.Expressions/tests/IndexExpression/IndexExpressionTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/IndexExpression/IndexExpressionTests.cs @@ -100,6 +100,7 @@ private static TypeBuilder GetTestTypeBuilder() => .DefineType("TestType"); [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/14920", TestRuntimes.Mono)] public void NoAccessorIndexedProperty() { TypeBuilder typeBuild = GetTestTypeBuilder(); @@ -174,6 +175,7 @@ public void VoidIndexedProperty() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/14927", TestRuntimes.Mono)] public void IndexedPropertyGetReturnsWrongType() { TypeBuilder typeBuild = GetTestTypeBuilder(); @@ -326,6 +328,7 @@ public void IndexedPropertyGetterInstanceSetterStatic() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/14927", TestRuntimes.Mono)] public void IndexedPropertySetterValueTypeNotMatchPropertyType() { TypeBuilder typeBuild = GetTestTypeBuilder(); diff --git a/src/libraries/System.Linq.Expressions/tests/Lambda/LambdaTests.cs b/src/libraries/System.Linq.Expressions/tests/Lambda/LambdaTests.cs index 970be08aef049..745a9e5e72231 100644 --- a/src/libraries/System.Linq.Expressions/tests/Lambda/LambdaTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/Lambda/LambdaTests.cs @@ -12,6 +12,7 @@ namespace System.Linq.Expressions.Tests { [TestCaseOrderer("System.Linq.Expressions.Tests.TestOrderer", "System.Linq.Expressions.Tests")] + [ActiveIssue("https://github.com/mono/mono/issues/14919", TestRuntimes.Mono)] public class LambdaTests { private delegate int IcosanaryInt32Func( diff --git a/src/libraries/System.Linq.Expressions/tests/Member/MemberAccessTests.cs b/src/libraries/System.Linq.Expressions/tests/Member/MemberAccessTests.cs index 01c93ac8de91d..19ceee9baa82b 100644 --- a/src/libraries/System.Linq.Expressions/tests/Member/MemberAccessTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/Member/MemberAccessTests.cs @@ -554,6 +554,7 @@ public static void MakeMemberAccess_MemberNotFieldOrProperty_ThrowsArgumentExcep #if FEATURE_COMPILE [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/14920", TestRuntimes.Mono)] public static void Property_NoGetOrSetAccessors_ThrowsArgumentException() { AssemblyBuilder assembly = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName("Name"), AssemblyBuilderAccess.RunAndCollect); diff --git a/src/libraries/System.Linq.Expressions/tests/MemberInit/BindTests.cs b/src/libraries/System.Linq.Expressions/tests/MemberInit/BindTests.cs index 060513a844ec8..1e505ff9186ca 100644 --- a/src/libraries/System.Linq.Expressions/tests/MemberInit/BindTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/MemberInit/BindTests.cs @@ -162,6 +162,7 @@ public void MemberAssignmentFromMethodInfo(bool useInterpreter) } [Theory, ClassData(typeof(CompilationTypes))] + [ActiveIssue("https://github.com/mono/mono/issues/14918", TestRuntimes.Mono)] public void ConstantField(bool useInterpreter) { MemberInfo member = typeof(PropertyAndFields).GetMember(nameof(PropertyAndFields.ConstantString))[0]; diff --git a/src/libraries/System.Linq.Expressions/tests/StackSpillerTests.cs b/src/libraries/System.Linq.Expressions/tests/StackSpillerTests.cs index d5069970c7c96..bb988b3a0b49c 100644 --- a/src/libraries/System.Linq.Expressions/tests/StackSpillerTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/StackSpillerTests.cs @@ -9,6 +9,7 @@ namespace System.Linq.Expressions.Tests { + [ActiveIssue("https://github.com/mono/mono/issues/14919", TestRuntimes.Mono)] public static class StackSpillerTests { [Fact] diff --git a/src/libraries/System.Linq.Expressions/tests/Unary/UnaryArithmeticNegateCheckedNullableTests.cs b/src/libraries/System.Linq.Expressions/tests/Unary/UnaryArithmeticNegateCheckedNullableTests.cs index f046b46238f37..004d3b30e40d1 100644 --- a/src/libraries/System.Linq.Expressions/tests/Unary/UnaryArithmeticNegateCheckedNullableTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/Unary/UnaryArithmeticNegateCheckedNullableTests.cs @@ -204,6 +204,7 @@ private static void VerifyArithmeticNegateCheckedNullableShort(short? value, boo #if FEATURE_COMPILE [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/14919", TestRuntimes.Mono)] public static void VerifyIL_NullableShortNegateChecked() { ParameterExpression param = Expression.Parameter(typeof(short?)); diff --git a/src/libraries/System.Linq.Expressions/tests/Unary/UnaryArithmeticNegateCheckedTests.cs b/src/libraries/System.Linq.Expressions/tests/Unary/UnaryArithmeticNegateCheckedTests.cs index bc76e11c387f0..8a4ca5d12218d 100644 --- a/src/libraries/System.Linq.Expressions/tests/Unary/UnaryArithmeticNegateCheckedTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/Unary/UnaryArithmeticNegateCheckedTests.cs @@ -211,6 +211,7 @@ private static void VerifyArithmeticNegateCheckedShort(short value, bool useInte #if FEATURE_COMPILE [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/14919", TestRuntimes.Mono)] public static void VerifyIL_ShortNegateChecked() { ParameterExpression param = Expression.Parameter(typeof(short)); diff --git a/src/libraries/System.Linq.Parallel/tests/PlinqModesTests.cs b/src/libraries/System.Linq.Parallel/tests/PlinqModesTests.cs index 661abc92219d7..0bd5fd5db57d0 100644 --- a/src/libraries/System.Linq.Parallel/tests/PlinqModesTests.cs +++ b/src/libraries/System.Linq.Parallel/tests/PlinqModesTests.cs @@ -159,6 +159,7 @@ public static void WithExecutionMode_ArgumentException(Labeled(() => new ArrayBufferWriter(0)); diff --git a/src/libraries/System.Memory/tests/Span/Reflection.cs b/src/libraries/System.Memory/tests/Span/Reflection.cs index 652e0f161e2d0..9066c692a6554 100644 --- a/src/libraries/System.Memory/tests/Span/Reflection.cs +++ b/src/libraries/System.Memory/tests/Span/Reflection.cs @@ -66,6 +66,7 @@ public static void MemoryMarshal_GenericStaticReturningSpan() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/14993", TestRuntimes.Mono)] public static void Span_Constructor() { Type type = typeof(Span); @@ -102,6 +103,7 @@ public static void Span_StaticOperator() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/14998", TestRuntimes.Mono)] public static void Span_InstanceMethod() { Type type = typeof(Span); @@ -111,6 +113,7 @@ public static void Span_InstanceMethod() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/14993", TestRuntimes.Mono)] public static void ReadOnlySpan_Constructor() { Type type = typeof(ReadOnlySpan); @@ -147,6 +150,7 @@ public static void ReadOnlySpan_Operator() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/14998", TestRuntimes.Mono)] public static void ReadOnlySpan_InstanceMethod() { Type type = typeof(ReadOnlySpan); @@ -156,6 +160,7 @@ public static void ReadOnlySpan_InstanceMethod() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/14998", TestRuntimes.Mono)] public static void Memory_PropertyReturningSpan() { Type type = typeof(Memory); @@ -165,6 +170,7 @@ public static void Memory_PropertyReturningSpan() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/14962", TestRuntimes.Mono)] public static void ReadOnlyMemory_PropertyReturningReadOnlySpan() { Type type = typeof(ReadOnlyMemory); diff --git a/src/libraries/System.Net.Http.WinHttpHandler/tests/FunctionalTests/PlatformHandlerTest.cs b/src/libraries/System.Net.Http.WinHttpHandler/tests/FunctionalTests/PlatformHandlerTest.cs index 499ba9bf5ae98..a871abc502df4 100644 --- a/src/libraries/System.Net.Http.WinHttpHandler/tests/FunctionalTests/PlatformHandlerTest.cs +++ b/src/libraries/System.Net.Http.WinHttpHandler/tests/FunctionalTests/PlatformHandlerTest.cs @@ -10,6 +10,7 @@ namespace System.Net.Http.Functional.Tests { + [ActiveIssue("https://github.com/mono/mono/issues/15005", TestRuntimes.Mono)] public class PlatformHandler_HttpClientHandler : HttpClientHandlerTestBase { public PlatformHandler_HttpClientHandler(ITestOutputHelper output) : base(output) { } diff --git a/src/libraries/System.Numerics.Vectors/tests/GenericVectorTests.cs b/src/libraries/System.Numerics.Vectors/tests/GenericVectorTests.cs index 6067f0cbb4ab2..d87f4e79e51d5 100644 --- a/src/libraries/System.Numerics.Vectors/tests/GenericVectorTests.cs +++ b/src/libraries/System.Numerics.Vectors/tests/GenericVectorTests.cs @@ -446,10 +446,13 @@ private void TestArrayIndexBasedConstructorLessElements() where T : struct #region Tests for constructors using unsupported types [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15190", TestRuntimes.Mono)] public void ConstructorWithUnsupportedTypes_Guid() => TestConstructorWithUnsupportedTypes(); [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15190", TestRuntimes.Mono)] public void ConstructorWithUnsupportedTypes_DateTime() => TestConstructorWithUnsupportedTypes(); [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15190", TestRuntimes.Mono)] public void ConstructorWithUnsupportedTypes_Char() => TestConstructorWithUnsupportedTypes(); private void TestConstructorWithUnsupportedTypes() where T : struct diff --git a/src/libraries/System.Private.Xml/tests/Xslt/XslTransformApi/CXslTransform.cs b/src/libraries/System.Private.Xml/tests/Xslt/XslTransformApi/CXslTransform.cs index 027f55762a7ae..a1d0a67ba50a3 100644 --- a/src/libraries/System.Private.Xml/tests/Xslt/XslTransformApi/CXslTransform.cs +++ b/src/libraries/System.Private.Xml/tests/Xslt/XslTransformApi/CXslTransform.cs @@ -474,6 +474,7 @@ public void TC_Xslt_Document_Function_Use_XmlUrlResolver(InputType inputType, Re [InlineData(InputType.Navigator, ReaderType.XmlValidatingReader, TransformType.Stream, DocType.XPathDocument)] [InlineData(InputType.Navigator, ReaderType.XmlValidatingReader, TransformType.TextWriter, DocType.XPathDocument)] [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/15353", TestRuntimes.Mono)] public void TC_AbsolutePath_Transform(InputType inputType, ReaderType readerType, TransformType transformType, DocType docType) { TestUsingTemporaryCopyOfResolverDocument(() => @@ -2097,6 +2098,7 @@ public void TC_Xslt_Document_Function_Use_XmlUrlResolver(InputType inputType, Re [InlineData(InputType.Navigator, ReaderType.XmlValidatingReader, TransformType.Stream, DocType.XPathDocument)] [InlineData(InputType.Navigator, ReaderType.XmlValidatingReader, TransformType.TextWriter, DocType.XPathDocument)] [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/15353", TestRuntimes.Mono)] public void TC_AbsolutePath_Transform(InputType inputType, ReaderType readerType, TransformType transformType, DocType docType) { TestUsingTemporaryCopyOfResolverDocument(() => diff --git a/src/libraries/System.Reflection.Context/tests/CustomReflectionContextTests.cs b/src/libraries/System.Reflection.Context/tests/CustomReflectionContextTests.cs index 93d7c0df88dae..527fae22d1dc7 100644 --- a/src/libraries/System.Reflection.Context/tests/CustomReflectionContextTests.cs +++ b/src/libraries/System.Reflection.Context/tests/CustomReflectionContextTests.cs @@ -31,6 +31,7 @@ public void MapType_Null_Throws() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15191", TestRuntimes.Mono)] public void MapType_MemberAttributes_Success() { var customReflectionContext = new TestCustomReflectionContext(); @@ -45,6 +46,7 @@ public void MapType_MemberAttributes_Success() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15191", TestRuntimes.Mono)] public void MapType_ParameterAttributes_Success() { var customReflectionContext = new TestCustomReflectionContext(); @@ -62,6 +64,7 @@ public void MapType_ParameterAttributes_Success() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15191", TestRuntimes.Mono)] public void MapType_Interface_Throws() { var customReflectionContext = new TestCustomReflectionContext(); diff --git a/src/libraries/System.Reflection.Emit.ILGeneration/tests/CustomAttributeBuilderTests.cs b/src/libraries/System.Reflection.Emit.ILGeneration/tests/CustomAttributeBuilderTests.cs index 9a5cb69a63785..fd7f153c1b2fa 100644 --- a/src/libraries/System.Reflection.Emit.ILGeneration/tests/CustomAttributeBuilderTests.cs +++ b/src/libraries/System.Reflection.Emit.ILGeneration/tests/CustomAttributeBuilderTests.cs @@ -256,6 +256,7 @@ private static void VerifyCustomAttributeBuilder(CustomAttributeBuilder builder, } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public static void Ctor_AllPrimitives() { ConstructorInfo con = typeof(Primitives).GetConstructors()[0]; @@ -451,6 +452,7 @@ public static IEnumerable Ctor_RefEmitParameters_TestData() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] [MemberData(nameof(Ctor_RefEmitParameters_TestData))] public static void Ctor_RefEmitParameters(ConstructorInfo con, object[] constructorArgs, PropertyInfo[] namedProperties, object[] propertyValues, @@ -466,6 +468,7 @@ public static void Ctor_RefEmitParameters(ConstructorInfo con, object[] construc } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] [InlineData(nameof(TestAttribute.ReadonlyField))] [InlineData(nameof(TestAttribute.StaticField))] [InlineData(nameof(TestAttribute.StaticReadonlyField))] @@ -499,6 +502,7 @@ public void NamedProperties_StaticProperty_Works() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] [InlineData(typeof(PrivateAttribute))] [InlineData(typeof(NotAnAttribute))] public static void ClassNotSupportedAsAttribute_DoesNotThrow_DoesNotSet(Type type) @@ -544,6 +548,7 @@ public static void PrivateConstructor_ThrowsArgumentException() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] [InlineData(CallingConventions.Any)] [InlineData(CallingConventions.VarArgs)] public static void ConstructorHasNonStandardCallingConvention_ThrowsArgumentException(CallingConventions callingConvention) @@ -645,6 +650,7 @@ public static IEnumerable InvalidAttributeTypes_TestData() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "Coreclr fixed an issue where IntPtr/UIntPtr in constructorParameters causes a corrupt created binary.")] [MemberData(nameof(IntPtrAttributeTypes_TestData))] public void ConstructorParametersContainsIntPtrOrUIntPtrArgument_ThrowsArgumentException(Type type, object value) @@ -653,6 +659,7 @@ public void ConstructorParametersContainsIntPtrOrUIntPtrArgument_ThrowsArgumentE } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] [MemberData(nameof(InvalidAttributeTypes_TestData))] public void ConstructorParametersNotSupportedInAttributes_ThrowsArgumentException(Type type, object value) { @@ -667,6 +674,7 @@ public void ConstructorParametersNotSupportedInAttributes_ThrowsArgumentExceptio } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "Used to throw a NullReferenceException, see https://github.com/dotnet/corefx/issues/11702.")] public void NullValueForPrimitiveTypeInConstructorArgs_ThrowsArgumentNullException() { @@ -686,6 +694,7 @@ public static IEnumerable NotSupportedPrimitives_TestData() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "Coreclr fixed an issue where IntPtr/UIntPtr in constructorArgs causes a corrupt created binary.")] [MemberData(nameof(NotSupportedPrimitives_TestData))] public static void NotSupportedPrimitiveInConstructorArgs_ThrowsArgumentException(object value) @@ -700,6 +709,7 @@ public static void NotSupportedPrimitiveInConstructorArgs_ThrowsArgumentExceptio } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public static void DynamicTypeInConstructorArgs_ThrowsFileNotFoundExceptionOnCreation() { AssemblyBuilder assembly = Helpers.DynamicAssembly(); @@ -746,6 +756,7 @@ public static IEnumerable FieldDoesntBelongToConstructorDeclaringType_ } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] [MemberData(nameof(FieldDoesntBelongToConstructorDeclaringType_TestData))] public void NamedFields_FieldDoesntBelongToConstructorDeclaringType_ThrowsArgumentException(ConstructorInfo con, FieldInfo field) { @@ -756,6 +767,7 @@ public void NamedFields_FieldDoesntBelongToConstructorDeclaringType_ThrowsArgume } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public void NamedFields_ContainsConstField_ThrowsArgumentException() { ConstructorInfo con = typeof(TestAttribute).GetConstructor(new Type[0]); @@ -781,6 +793,7 @@ public static void NullFieldValues_ThrowsArgumentNullException() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public static void NullObjectInNamedFields_ThrowsArgumentNullException() { ConstructorInfo con = typeof(TestAttribute).GetConstructor(new Type[0]); @@ -791,6 +804,7 @@ public static void NullObjectInNamedFields_ThrowsArgumentNullException() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public static void NullObjectInFieldValues_ThrowsArgumentNullException() { ConstructorInfo con = typeof(TestAttribute).GetConstructor(new Type[0]); @@ -802,6 +816,7 @@ public static void NullObjectInFieldValues_ThrowsArgumentNullException() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] [MemberData(nameof(NotSupportedObject_Others_TestData))] public static void NotSupportedObjectInFieldValues_ThrowsArgumentException(object value) { @@ -814,6 +829,7 @@ public static void NotSupportedObjectInFieldValues_ThrowsArgumentException(objec } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public static void ZeroCountMultidimensionalArrayInFieldValues_ChangesToZeroCountJaggedArray() { ConstructorInfo con = typeof(TestAttribute).GetConstructor(new Type[0]); @@ -831,6 +847,7 @@ public static void ZeroCountMultidimensionalArrayInFieldValues_ChangesToZeroCoun } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] [MemberData(nameof(NotSupportedPrimitives_TestData))] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "Coreclr fixed an issue where IntPtr/UIntPtr in fieldValues causes a corrupt created binary.")] public static void NotSupportedPrimitiveInFieldValues_ThrowsArgumentException(object value) @@ -847,6 +864,7 @@ public static void NotSupportedPrimitiveInFieldValues_ThrowsArgumentException(ob } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public static void DynamicTypeInPropertyValues_ThrowsFileNotFoundExceptionOnCreation() { AssemblyBuilder assembly = Helpers.DynamicAssembly(); @@ -894,6 +912,7 @@ public static void NullPropertyValues_ThrowsArgumentNullException() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public static void NullObjectInNamedProperties_ThrowsArgumentNullException() { ConstructorInfo con = typeof(TestAttribute).GetConstructor(new Type[0]); @@ -904,6 +923,7 @@ public static void NullObjectInNamedProperties_ThrowsArgumentNullException() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public static void IndexerInNamedProperties_ThrowsCustomAttributeFormatExceptionOnCreation() { ConstructorInfo con = typeof(IndexerAttribute).GetConstructor(new Type[0]); @@ -943,6 +963,7 @@ public static IEnumerable PropertyDoesntBelongToConstructorDeclaringTy } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] [MemberData(nameof(PropertyDoesntBelongToConstructorDeclaringType_TestData))] public void NamedProperties_PropertyDoesntBelongToConstructorDeclaringType_ThrowsArgumentException(ConstructorInfo con, PropertyInfo property) { @@ -953,6 +974,7 @@ public void NamedProperties_PropertyDoesntBelongToConstructorDeclaringType_Throw } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public static void NullObjectInPropertyValues_ThrowsArgumentNullException() { ConstructorInfo con = typeof(TestAttribute).GetConstructor(new Type[0]); @@ -964,6 +986,7 @@ public static void NullObjectInPropertyValues_ThrowsArgumentNullException() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] [MemberData(nameof(NotSupportedObject_Others_TestData))] public static void NotSupportedObjectInPropertyValues_ThrowsArgumentException(object value) { @@ -976,6 +999,7 @@ public static void NotSupportedObjectInPropertyValues_ThrowsArgumentException(ob } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public static void ZeroCountMultidimensionalArrayInPropertyValues_ChangesToZeroCountJaggedArray() { ConstructorInfo con = typeof(TestAttribute).GetConstructor(new Type[0]); @@ -993,6 +1017,7 @@ public static void ZeroCountMultidimensionalArrayInPropertyValues_ChangesToZeroC } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] [MemberData(nameof(NotSupportedPrimitives_TestData))] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "Coreclr fixed an issue where IntPtr/UIntPtr in propertValues causes a corrupt created binary.")] public static void NotSupportedPrimitiveInPropertyValues_ThrowsArgumentException(object value) @@ -1006,6 +1031,7 @@ public static void NotSupportedPrimitiveInPropertyValues_ThrowsArgumentException } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public static void DynamicTypeInFieldValues_ThrowsFileNotFoundExceptionOnCreation() { AssemblyBuilder assembly = Helpers.DynamicAssembly(); diff --git a/src/libraries/System.Reflection.Emit.ILGeneration/tests/ILGenerator/DeclareLocalTests.cs b/src/libraries/System.Reflection.Emit.ILGeneration/tests/ILGenerator/DeclareLocalTests.cs index 7006bebed11d3..2e75d30112f6d 100644 --- a/src/libraries/System.Reflection.Emit.ILGeneration/tests/ILGenerator/DeclareLocalTests.cs +++ b/src/libraries/System.Reflection.Emit.ILGeneration/tests/ILGenerator/DeclareLocalTests.cs @@ -95,6 +95,7 @@ public void DeclareLocal_NullLocalType_ThrowsArgumentNullException() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public void DeclareLocal_TypeCreated_ThrowsInvalidOperationException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.NotPublic); @@ -107,6 +108,7 @@ public void DeclareLocal_TypeCreated_ThrowsInvalidOperationException() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public void DeclareLocal_GlobalFunctionsCreated_ThrowsInvalidOperationException() { ModuleBuilder module = Helpers.DynamicModule(); diff --git a/src/libraries/System.Reflection.Emit.ILGeneration/tests/ILGenerator/Emit2Tests.cs b/src/libraries/System.Reflection.Emit.ILGeneration/tests/ILGenerator/Emit2Tests.cs index a98de1f875274..9023dfc7411e0 100644 --- a/src/libraries/System.Reflection.Emit.ILGeneration/tests/ILGenerator/Emit2Tests.cs +++ b/src/libraries/System.Reflection.Emit.ILGeneration/tests/ILGenerator/Emit2Tests.cs @@ -147,6 +147,7 @@ public void Emit_OpCodes_LocalBuilder_NullLocal_ThrowsArgumentNullException() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public void Emit_OpCodes_LocalBuilder_LocalFromDifferentMethod_ThrowsArgumentException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.NotPublic); @@ -159,6 +160,7 @@ public void Emit_OpCodes_LocalBuilder_LocalFromDifferentMethod_ThrowsArgumentExc } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public void Emit_OpCodes_LocalBuilder_TooManyLocals_ThrowsInvalidOperationException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.NotPublic); diff --git a/src/libraries/System.Reflection.Emit.ILGeneration/tests/ILGenerator/Emit3Tests.cs b/src/libraries/System.Reflection.Emit.ILGeneration/tests/ILGenerator/Emit3Tests.cs index ab8b8e771b1cb..5ebcd29654a3e 100644 --- a/src/libraries/System.Reflection.Emit.ILGeneration/tests/ILGenerator/Emit3Tests.cs +++ b/src/libraries/System.Reflection.Emit.ILGeneration/tests/ILGenerator/Emit3Tests.cs @@ -223,6 +223,7 @@ public void Emit_OpCodes_LocalBuilder_NullLocal_ThrowsArgumentNullException() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public void Emit_OpCodes_LocalBuilder_LocalFromDifferentMethod_ThrowsArgumentException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.NotPublic); diff --git a/src/libraries/System.Reflection.Emit.ILGeneration/tests/ILGenerator/Emit4Tests.cs b/src/libraries/System.Reflection.Emit.ILGeneration/tests/ILGenerator/Emit4Tests.cs index 3002a335f92c7..79551e3533084 100644 --- a/src/libraries/System.Reflection.Emit.ILGeneration/tests/ILGenerator/Emit4Tests.cs +++ b/src/libraries/System.Reflection.Emit.ILGeneration/tests/ILGenerator/Emit4Tests.cs @@ -74,6 +74,7 @@ public void TestDynamicMethodEmitCalliBlittable() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public void TestEmitCalliNonBlittable() { string input = "Test string!", result = "!gnirts tseT"; diff --git a/src/libraries/System.Reflection.Emit.ILGeneration/tests/ParameterBuilder/SetCustomAttributeTests.cs b/src/libraries/System.Reflection.Emit.ILGeneration/tests/ParameterBuilder/SetCustomAttributeTests.cs index 847ffb87ab2c4..0a7bf9927607f 100644 --- a/src/libraries/System.Reflection.Emit.ILGeneration/tests/ParameterBuilder/SetCustomAttributeTests.cs +++ b/src/libraries/System.Reflection.Emit.ILGeneration/tests/ParameterBuilder/SetCustomAttributeTests.cs @@ -59,6 +59,7 @@ public void SetCustomAttribute_ConstructorInfo_ByteArray() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public void SetCustomAttribute_NullArgument_ThrowsArgumentNullException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.NotPublic); diff --git a/src/libraries/System.Reflection.Emit.ILGeneration/tests/SignatureHelper/SignatureHelperAddArgument.cs b/src/libraries/System.Reflection.Emit.ILGeneration/tests/SignatureHelper/SignatureHelperAddArgument.cs index 54364074f2312..57f7008405983 100644 --- a/src/libraries/System.Reflection.Emit.ILGeneration/tests/SignatureHelper/SignatureHelperAddArgument.cs +++ b/src/libraries/System.Reflection.Emit.ILGeneration/tests/SignatureHelper/SignatureHelperAddArgument.cs @@ -19,6 +19,7 @@ public void AddArgument_Type() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] [InlineData(true, 3)] [InlineData(false, 2)] public void AddArgument_Type_Bool(bool pinned, int expectedLength) @@ -31,6 +32,7 @@ public void AddArgument_Type_Bool(bool pinned, int expectedLength) } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] [InlineData(null, null, 2)] [InlineData(new Type[] { typeof(int) }, null, 4)] [InlineData(null, new Type[] { typeof(Type) }, 4)] @@ -45,6 +47,7 @@ public void AddArgument_Type_TypeArray_TypeArray(Type[] requiredCustomModifiers, } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public void AddArgument_NullType_ThrowsArgumentNullException() { ModuleBuilder module = Helpers.DynamicModule(); @@ -56,6 +59,7 @@ public void AddArgument_NullType_ThrowsArgumentNullException() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public void AddArgument_SignatureFinished_ThrowsArgumentException() { ModuleBuilder module = Helpers.DynamicModule(); @@ -67,6 +71,7 @@ public void AddArgument_SignatureFinished_ThrowsArgumentException() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public void AddArgument_DifferentCountsForCustomModifiers_ThrowsArgumentException() { ModuleBuilder module = Helpers.DynamicModule(); diff --git a/src/libraries/System.Reflection.Emit.ILGeneration/tests/SignatureHelper/SignatureHelperAddArguments.cs b/src/libraries/System.Reflection.Emit.ILGeneration/tests/SignatureHelper/SignatureHelperAddArguments.cs index c1f801f05b13e..dc816fc0daaff 100644 --- a/src/libraries/System.Reflection.Emit.ILGeneration/tests/SignatureHelper/SignatureHelperAddArguments.cs +++ b/src/libraries/System.Reflection.Emit.ILGeneration/tests/SignatureHelper/SignatureHelperAddArguments.cs @@ -18,6 +18,7 @@ public static IEnumerable AddArguments_TestData() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] [MemberData(nameof(AddArguments_TestData))] public void AddArguments(Type[][] requiredCustomModifiers, Type[][] optionalCustomModifiers, int expectedLength) { @@ -38,6 +39,7 @@ public void AddArguments_NullObjectInTypeArguments_ThrowsArgumentNullException() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public void AddArguments_SignatureFinished_ThrowsArgumentException() { ModuleBuilder module = Helpers.DynamicModule(); @@ -48,6 +50,7 @@ public void AddArguments_SignatureFinished_ThrowsArgumentException() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public void AddArgument_NullObjectInRequiredCustomModifiers_ThrowsArgumentNullException() { ModuleBuilder module = Helpers.DynamicModule(); @@ -57,6 +60,7 @@ public void AddArgument_NullObjectInRequiredCustomModifiers_ThrowsArgumentNullEx } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public void AddArgument_DifferentCountsForCustomModifiers_ThrowsArgumentException() { ModuleBuilder module = Helpers.DynamicModule(); @@ -70,6 +74,7 @@ public void AddArgument_DifferentCountsForCustomModifiers_ThrowsArgumentExceptio } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public void AddArgument_NullObjectInOptionalCustomModifiers_ThrowsArgumentNullException() { ModuleBuilder module = Helpers.DynamicModule(); diff --git a/src/libraries/System.Reflection.Emit.ILGeneration/tests/SignatureHelper/SignatureHelperGetMethodSigHelper.cs b/src/libraries/System.Reflection.Emit.ILGeneration/tests/SignatureHelper/SignatureHelperGetMethodSigHelper.cs index 11f24545fe2e3..1fe7f0ec7273b 100644 --- a/src/libraries/System.Reflection.Emit.ILGeneration/tests/SignatureHelper/SignatureHelperGetMethodSigHelper.cs +++ b/src/libraries/System.Reflection.Emit.ILGeneration/tests/SignatureHelper/SignatureHelperGetMethodSigHelper.cs @@ -9,6 +9,7 @@ namespace System.Reflection.Emit.Tests public class SignatureHelperGetMethodSigHelper { [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] [InlineData(CallingConventions.Any, typeof(int))] [InlineData(CallingConventions.ExplicitThis, typeof(string))] [InlineData(CallingConventions.HasThis, typeof(string))] @@ -21,6 +22,7 @@ public void GetMethodSigHelper_CallingConventions_Type_Length_ReturnsThree(Calli } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] [InlineData(CallingConventions.Any, typeof(int))] [InlineData(CallingConventions.ExplicitThis, typeof(string))] [InlineData(CallingConventions.HasThis, typeof(string))] @@ -37,6 +39,7 @@ public void GetMethodSigHelper_Module_CallingConventions_Type_Length_ReturnsThre } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public void GetMethodSigHelper_Module_Type_TypeArray() { ModuleBuilder module = Helpers.DynamicModule(); @@ -48,6 +51,7 @@ public void GetMethodSigHelper_Module_Type_TypeArray() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public void GetMethodSigHelper_Module_Type_TypeArray_NullObjectInParameterType_ThrowsArgumentNullException() { ModuleBuilder module = Helpers.DynamicModule(); diff --git a/src/libraries/System.Reflection.Emit.ILGeneration/tests/SignatureHelper/SignatureHelperGetPropertySigHelper.cs b/src/libraries/System.Reflection.Emit.ILGeneration/tests/SignatureHelper/SignatureHelperGetPropertySigHelper.cs index 3ff99ca22a23c..557c5007e8a82 100644 --- a/src/libraries/System.Reflection.Emit.ILGeneration/tests/SignatureHelper/SignatureHelperGetPropertySigHelper.cs +++ b/src/libraries/System.Reflection.Emit.ILGeneration/tests/SignatureHelper/SignatureHelperGetPropertySigHelper.cs @@ -10,6 +10,7 @@ namespace System.Reflection.Emit.Tests public class SignatureHelperGetPropertySigHelper { [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] [InlineData(typeof(string), new Type[] { typeof(Delegate), typeof(int) }, 6)] [InlineData(typeof(Type), new Type[] { typeof(char), typeof(object) }, 6)] public void GetPropertySigHelper_Module_Type_TypeArray(Type returnType, Type[] parameterTypes, int expectedLength) @@ -20,6 +21,7 @@ public void GetPropertySigHelper_Module_Type_TypeArray(Type returnType, Type[] p } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public void GetPropertySigHelper_Module_Type_TypeArray_NullModule_DoesNotThrow() { SignatureHelper helper = SignatureHelper.GetPropertySigHelper(null, typeof(string), new Type[] { typeof(string), typeof(int) }); @@ -27,6 +29,7 @@ public void GetPropertySigHelper_Module_Type_TypeArray_NullModule_DoesNotThrow() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public void GetPropertySigHelper_Module_Type_TypeArray_NullObjectInParameterTypes_ThrowsArgumentNullException() { ModuleBuilder module = Helpers.DynamicModule(); @@ -41,6 +44,7 @@ public static IEnumerable GetPropertySigHelper_TestData() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] [MemberData(nameof(GetPropertySigHelper_TestData))] public void GetProperySigHelper_Module_Type_TypeArray_TypeArray_TypeArrayArray_TypeArrayArray(Type[] types, int expectedLength) { @@ -52,6 +56,7 @@ public void GetProperySigHelper_Module_Type_TypeArray_TypeArray_TypeArrayArray_T } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public void GetPropertySigHelper_NullModule_ThrowsNullReferenceException() { Type[] types = new Type[] { typeof(short), typeof(bool) }; @@ -62,6 +67,7 @@ public void GetPropertySigHelper_NullModule_ThrowsNullReferenceException() [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2383", TestRuntimes.Mono)] public void GetPropertySigHelper_NullTypeInParameterTypes_ThrowsArgumentNullException() { Type[] types = new Type[] { typeof(short), null }; diff --git a/src/libraries/System.Reflection.Emit.Lightweight/tests/DynamicILInfoTests.cs b/src/libraries/System.Reflection.Emit.Lightweight/tests/DynamicILInfoTests.cs index ca77880b5004e..079606261b88e 100644 --- a/src/libraries/System.Reflection.Emit.Lightweight/tests/DynamicILInfoTests.cs +++ b/src/libraries/System.Reflection.Emit.Lightweight/tests/DynamicILInfoTests.cs @@ -13,6 +13,7 @@ public class DynamicILInfoTests private static string HelloWorld() => "hello, world".ToUpper(); [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/31857", TestRuntimes.Mono)] public void GetTokenFor_String_Success() { DynamicMethod dynamicMethod = new DynamicMethod(nameof(HelloWorld), typeof(string), new Type[] { }, typeof(DynamicILInfoTests), false); @@ -43,6 +44,7 @@ private static long Fib(long value) } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/31857", TestRuntimes.Mono)] public void GetTokenFor_DynamicMethod_Success() { // Calling DynamicMethod recursively @@ -117,6 +119,7 @@ public override int GetHashCode() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/31857", TestRuntimes.Mono)] public void GetTokenFor_CtorMethodAndField_Success() { DynamicMethod dynamicMethod = new DynamicMethod(nameof(Mock), typeof(Person), new Type[] { }, typeof(DynamicILInfoTests), false); @@ -184,6 +187,7 @@ private static int SumInteger() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15321", TestRuntimes.Mono)] public void GetTokenFor_IntGenerics_Success() { DynamicMethod dynamicMethod = new DynamicMethod(nameof(SumInteger), typeof(int), new Type[] { }, typeof(DynamicILInfoTests), false); @@ -247,6 +251,7 @@ private static string ContactString() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/31857", TestRuntimes.Mono)] public void GetTokenFor_StringGenerics_Success() { DynamicMethod dynamicMethod = new DynamicMethod(nameof(ContactString), typeof(string), Type.EmptyTypes, typeof(DynamicILInfoTests), false); @@ -342,6 +347,7 @@ private static int ExceptionTest() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/31857", TestRuntimes.Mono)] public void GetTokenFor_Exception_Success() { DynamicMethod dynamicMethod = new DynamicMethod(nameof(ExceptionTest), typeof(int), Type.EmptyTypes, typeof(DynamicILInfoTests), false); @@ -423,6 +429,7 @@ private static bool GenericMethod() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/31857", TestRuntimes.Mono)] public void Test_GenericMethod() { DynamicMethod dynamicMethod = new DynamicMethod(nameof(GenericMethod), typeof(bool), Type.EmptyTypes, typeof(DynamicILInfoTests), false); @@ -502,6 +509,7 @@ private static int TwoDimTest() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/31857", TestRuntimes.Mono)] public void Test_TwoDimTest() { // 2-D array (set/address/get) @@ -575,6 +583,7 @@ private static string CallGM() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/31857", TestRuntimes.Mono)] public void Test_CallGM() { // GenericMethod inside GenericType @@ -646,6 +655,7 @@ private static void PutInteger4(int value, int startPos, byte[] array) } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/31858", TestRuntimes.Mono)] [InlineData(true)] [InlineData(false)] public unsafe void SetX_NullInput_ThrowsArgumentNullException(bool skipVisibility) @@ -659,6 +669,7 @@ public unsafe void SetX_NullInput_ThrowsArgumentNullException(bool skipVisibilit } [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/15334", TestRuntimes.Mono)] [InlineData(true)] [InlineData(false)] public unsafe void SetX_NegativeInputSize_ThrowsArgumentOutOfRangeException(bool skipVisibility) diff --git a/src/libraries/System.Reflection.Emit.Lightweight/tests/DynamicMethodCtor.cs b/src/libraries/System.Reflection.Emit.Lightweight/tests/DynamicMethodCtor.cs index e35fba88e7fc6..8c99b0cacab1d 100644 --- a/src/libraries/System.Reflection.Emit.Lightweight/tests/DynamicMethodCtor.cs +++ b/src/libraries/System.Reflection.Emit.Lightweight/tests/DynamicMethodCtor.cs @@ -160,6 +160,7 @@ public void NullOwner_ThrowsArgumentNullException() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/31858", TestRuntimes.Mono)] [InlineData(typeof(int[]))] [InlineData(typeof(TestInterface))] [InlineData(typeof(GenericClass<>))] diff --git a/src/libraries/System.Reflection.Emit.Lightweight/tests/DynamicMethodGetILGenerator.cs b/src/libraries/System.Reflection.Emit.Lightweight/tests/DynamicMethodGetILGenerator.cs index d66c1e23f71c2..35f67a45f1762 100644 --- a/src/libraries/System.Reflection.Emit.Lightweight/tests/DynamicMethodGetILGenerator.cs +++ b/src/libraries/System.Reflection.Emit.Lightweight/tests/DynamicMethodGetILGenerator.cs @@ -29,6 +29,7 @@ public void GetILGenerator_Int_Owner(bool skipVisibility) } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15321", TestRuntimes.Mono)] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "The coreclr ignores the skipVisibility value of DynamicMethod.")] public void GetILGenerator_Int_Module_CoreclrIgnoresSkipVisibility() { @@ -73,6 +74,7 @@ public void GetILGenerator_Owner(bool skipVisibility) } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15321", TestRuntimes.Mono)] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "The coreclr ignores the skipVisibility value of DynamicMethod.")] public void GetILGenerator_Module_CoreclrIgnoresSkipVisibility() { diff --git a/src/libraries/System.Reflection.Emit/tests/AssemblyBuilderTests.cs b/src/libraries/System.Reflection.Emit/tests/AssemblyBuilderTests.cs index e2caa25117acc..0d09c0d4955b0 100644 --- a/src/libraries/System.Reflection.Emit/tests/AssemblyBuilderTests.cs +++ b/src/libraries/System.Reflection.Emit/tests/AssemblyBuilderTests.cs @@ -37,6 +37,7 @@ public static IEnumerable DefineDynamicAssembly_TestData() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(DefineDynamicAssembly_TestData))] public void DefineDynamicAssembly_AssemblyName_AssemblyBuilderAccess(AssemblyName name, AssemblyBuilderAccess access) { @@ -57,6 +58,7 @@ public static IEnumerable DefineDynamicAssembly_CustomAttributes_TestD } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(DefineDynamicAssembly_CustomAttributes_TestData))] public void DefineDynamicAssembly_AssemblyName_AssemblyBuilderAccess_CustomAttributeBuilder(AssemblyName name, AssemblyBuilderAccess access, IEnumerable attributes) { @@ -113,6 +115,7 @@ public static IEnumerable DefineDynamicModule_TestData() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(DefineDynamicModule_TestData))] public void DefineDynamicModule(string name) { diff --git a/src/libraries/System.Reflection.Emit/tests/ConstructorBuilder/ConstructorBuilderToString.cs b/src/libraries/System.Reflection.Emit/tests/ConstructorBuilder/ConstructorBuilderToString.cs index 3f7eec9113fd0..a00d42e12c25f 100644 --- a/src/libraries/System.Reflection.Emit/tests/ConstructorBuilder/ConstructorBuilderToString.cs +++ b/src/libraries/System.Reflection.Emit/tests/ConstructorBuilder/ConstructorBuilderToString.cs @@ -9,6 +9,7 @@ namespace System.Reflection.Emit.Tests public class ConstructorBuilderToString { [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void ToString_NullRequiredOptionalCustomModifiers() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); @@ -19,6 +20,7 @@ public void ToString_NullRequiredOptionalCustomModifiers() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void ToString_NoRequiredOptionalCustomModifiers() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); diff --git a/src/libraries/System.Reflection.Emit/tests/EnumBuilder/EnumBuilder.Methods.Tests.cs b/src/libraries/System.Reflection.Emit/tests/EnumBuilder/EnumBuilder.Methods.Tests.cs index cd60995012f86..d02de105199fe 100644 --- a/src/libraries/System.Reflection.Emit/tests/EnumBuilder/EnumBuilder.Methods.Tests.cs +++ b/src/libraries/System.Reflection.Emit/tests/EnumBuilder/EnumBuilder.Methods.Tests.cs @@ -50,6 +50,7 @@ public static IEnumerable DefineLiteral_TestData() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(DefineLiteral_TestData))] public void DefineLiteral(Type underlyingType, object literalValue) { @@ -113,6 +114,7 @@ public static IEnumerable DefineLiteral_InvalidLiteralValue_ThrowsArgu } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(DefineLiteral_InvalidLiteralValue_ThrowsArgumentException_TestData))] public void DefineLiteral_InvalidLiteralValue_ThrowsArgumentException(Type underlyingType, object literalValue) { @@ -207,6 +209,7 @@ public void MakePointerType() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void SetCustomAttribute_ConstructorInfo_ByteArray() { EnumBuilder enumBuilder = Helpers.DynamicEnum(TypeAttributes.Public, typeof(int)); @@ -220,6 +223,7 @@ public void SetCustomAttribute_ConstructorInfo_ByteArray() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void SetCustomAttribute_CustomAttributeBuilder() { EnumBuilder enumBuilder = Helpers.DynamicEnum(TypeAttributes.Public, typeof(int)); diff --git a/src/libraries/System.Reflection.Emit/tests/EnumBuilder/EnumBuilder.Properties.Tests.cs b/src/libraries/System.Reflection.Emit/tests/EnumBuilder/EnumBuilder.Properties.Tests.cs index 6767aa0e2042c..e13310eae5265 100644 --- a/src/libraries/System.Reflection.Emit/tests/EnumBuilder/EnumBuilder.Properties.Tests.cs +++ b/src/libraries/System.Reflection.Emit/tests/EnumBuilder/EnumBuilder.Properties.Tests.cs @@ -9,6 +9,7 @@ namespace System.Reflection.Emit.Tests public class EnumBuilderPropertyTests { [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void Guid_TypeCreated() { EnumBuilder enumBuilder = Helpers.DynamicEnum(TypeAttributes.Public, typeof(int)); diff --git a/src/libraries/System.Reflection.Emit/tests/FieldBuilder/FieldBuilderSetConstant.cs b/src/libraries/System.Reflection.Emit/tests/FieldBuilder/FieldBuilderSetConstant.cs index 237a2d308ea9f..7d0bf768d0e56 100644 --- a/src/libraries/System.Reflection.Emit/tests/FieldBuilder/FieldBuilderSetConstant.cs +++ b/src/libraries/System.Reflection.Emit/tests/FieldBuilder/FieldBuilderSetConstant.cs @@ -258,6 +258,7 @@ public static IEnumerable SetConstant_Invalid_TestData() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(SetConstant_Invalid_TestData))] public void SetConstant_InvalidType_ThrowsArgumentException(FieldBuilder field, object defaultValue) { diff --git a/src/libraries/System.Reflection.Emit/tests/GenericTypeParameterBuilder/GenericTypeParameterBuilderSetInterfaceConstraints.cs b/src/libraries/System.Reflection.Emit/tests/GenericTypeParameterBuilder/GenericTypeParameterBuilderSetInterfaceConstraints.cs index 9fb4f4d4ef868..9cea7e3d0dd5f 100644 --- a/src/libraries/System.Reflection.Emit/tests/GenericTypeParameterBuilder/GenericTypeParameterBuilderSetInterfaceConstraints.cs +++ b/src/libraries/System.Reflection.Emit/tests/GenericTypeParameterBuilder/GenericTypeParameterBuilderSetInterfaceConstraints.cs @@ -9,6 +9,7 @@ namespace System.Reflection.Emit.Tests public class GenericTypeParameterBuilderSetInterfaceConstraints { [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void SetInterfaceConstraints_OneCustomInterface() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); @@ -39,6 +40,7 @@ public void SetInterfaceConstraints_Null() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void SetInterfaceConstraints_MultipleCustomInterfaces() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); diff --git a/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderDefineGenericParameters.cs b/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderDefineGenericParameters.cs index 6a7c39ca41998..eda2bcaf3f025 100644 --- a/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderDefineGenericParameters.cs +++ b/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderDefineGenericParameters.cs @@ -55,6 +55,7 @@ public void DefineGenericParameter_MultipleParameters() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void DefineGenericParameters_SingleTypeParameter_SetImplementationFlagsCalled_ThrowsInvalidOperationException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.NotPublic); @@ -64,6 +65,7 @@ public void DefineGenericParameters_SingleTypeParameter_SetImplementationFlagsCa } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void DefineGenericParameters_TwoTypeParameters_SetImplementationFlagsCalled_ThrowsInvalidOperationException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.NotPublic); @@ -75,6 +77,7 @@ public void DefineGenericParameters_TwoTypeParameters_SetImplementationFlagsCall } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void DefineGenericParameters_SingleTypeParameter_AlreadyDefined_ThrowsInvalidOperationException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.NotPublic); @@ -85,6 +88,7 @@ public void DefineGenericParameters_SingleTypeParameter_AlreadyDefined_ThrowsInv } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void DefineGenericParameters_TwoTypeParameters_AlreadyDefined_ThrowsInvalidOperationException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.NotPublic); diff --git a/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderEquals.cs b/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderEquals.cs index 0dc6aab3195a0..2429eb650ecb4 100644 --- a/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderEquals.cs +++ b/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderEquals.cs @@ -72,6 +72,7 @@ public static IEnumerable Equals_TestData() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(Equals_TestData))] public void Equals(MethodBuilder builder, object obj, bool expected) { diff --git a/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderGetGenericArguments.cs b/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderGetGenericArguments.cs index b13dc77374d08..17b9297d3408d 100644 --- a/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderGetGenericArguments.cs +++ b/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderGetGenericArguments.cs @@ -10,6 +10,7 @@ namespace System.Reflection.Emit.Tests public class MethodBuilderGetGenericArguments { [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void GetGenericArguments_NonGenericMethod_ReturnsEmptyArray() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Abstract); diff --git a/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderGetILGenerator.cs b/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderGetILGenerator.cs index 70b54995703c3..7e226a4a1557c 100644 --- a/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderGetILGenerator.cs +++ b/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderGetILGenerator.cs @@ -27,6 +27,7 @@ public void GetILGenerator_Int(int size) } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [InlineData(TypeAttributes.Public, MethodAttributes.Public | MethodAttributes.PinvokeImpl)] [InlineData(TypeAttributes.Abstract, MethodAttributes.PinvokeImpl)] [InlineData(TypeAttributes.Abstract, MethodAttributes.Abstract | MethodAttributes.PinvokeImpl)] diff --git a/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderMakeGenericMethod.cs b/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderMakeGenericMethod.cs index 20faceae32238..5843f091b1cce 100644 --- a/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderMakeGenericMethod.cs +++ b/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderMakeGenericMethod.cs @@ -32,6 +32,7 @@ public void MakeGenericMethod(string[] names, Type[] typeArguments, Type returnT } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void TestNotThrowsExceptionOnNull() { Type returnType = typeof(void); @@ -45,6 +46,7 @@ public void TestNotThrowsExceptionOnNull() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void TestNotThrowsExceptionOnEmptyArray1() { Type returnType = typeof(void); @@ -59,6 +61,7 @@ public void TestNotThrowsExceptionOnEmptyArray1() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void TestNotThrowsExceptionOnEmptyArray2() { Type returnType = typeof(void); diff --git a/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderReturnParameter.cs b/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderReturnParameter.cs index eed0b310a543c..a1c640106f1f6 100644 --- a/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderReturnParameter.cs +++ b/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderReturnParameter.cs @@ -48,6 +48,7 @@ public void ReturnParameter_TypeNotCreated_ThrowsInvalidOperationException() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void ReturnParameter_NoBody_ThrowsInvalidOperationException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Abstract); diff --git a/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderSetParameters.cs b/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderSetParameters.cs index aefe008a1d633..6438c39630714 100644 --- a/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderSetParameters.cs +++ b/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderSetParameters.cs @@ -18,6 +18,7 @@ public static IEnumerable SetParameters_TestData() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(SetParameters_TestData))] public void SetParameters(Type[] parameterTypes, string[] typeParamNames) { @@ -101,6 +102,7 @@ public void SetParameters_NoParameterTypes() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void SetParameters_NullParameter_ThrowsArgumentNullException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Abstract); diff --git a/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderSetReturnType.cs b/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderSetReturnType.cs index 9399227f27777..3258f93fcfd51 100644 --- a/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderSetReturnType.cs +++ b/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderSetReturnType.cs @@ -133,6 +133,7 @@ public void SetReturnType_TypeCreated_Works() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void SetReturnType_NullReturnType_ReturnsVoid() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Abstract); diff --git a/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderSetSignature.cs b/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderSetSignature.cs index b86525971be94..deec0e814e277 100644 --- a/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderSetSignature.cs +++ b/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderSetSignature.cs @@ -192,6 +192,7 @@ public void SetSignature_NonGenericMethod() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void SetSignature_AllParametersNull() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Abstract); @@ -202,6 +203,7 @@ public void SetSignature_AllParametersNull() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void SetSignature_NullReturnType_CustomModifiersSetToWrongTypes() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Abstract); diff --git a/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderToString.cs b/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderToString.cs index 65495e848576b..ae97821a67db6 100644 --- a/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderToString.cs +++ b/src/libraries/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderToString.cs @@ -9,6 +9,7 @@ namespace System.Reflection.Emit.Tests public class MethodBuilderToString { [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void ToString_AllFieldsSet() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Abstract); @@ -25,6 +26,7 @@ public void ToString_AllFieldsSet() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void ToString_NameAndAttributeSet() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Abstract); @@ -34,6 +36,7 @@ public void ToString_NameAndAttributeSet() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void ToString_NameAttributeAndSignatureSetSet() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Abstract); @@ -44,6 +47,7 @@ public void ToString_NameAttributeAndSignatureSetSet() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void ToString_NonGenericMethod() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); @@ -59,6 +63,7 @@ public void ToString_NonGenericMethod() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void ToString_GenericMethod() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); diff --git a/src/libraries/System.Reflection.Emit/tests/ModuleBuilder/ModuleBuilderDefineEnum.cs b/src/libraries/System.Reflection.Emit/tests/ModuleBuilder/ModuleBuilderDefineEnum.cs index b882e0a3b7c74..920dc871b5867 100644 --- a/src/libraries/System.Reflection.Emit/tests/ModuleBuilder/ModuleBuilderDefineEnum.cs +++ b/src/libraries/System.Reflection.Emit/tests/ModuleBuilder/ModuleBuilderDefineEnum.cs @@ -30,6 +30,7 @@ public static IEnumerable DefineEnum_TestData() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(DefineEnum_TestData))] public void DefineEnum(string name, TypeAttributes visibility, Type underlyingType) { @@ -77,6 +78,7 @@ public void DefineEnum(string name, TypeAttributes visibility, Type underlyingTy } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void DefineEnum_DynamicUnderlyingType_Works() { ModuleBuilder module = Helpers.DynamicModule(); @@ -159,6 +161,7 @@ public void DefineEnum_VoidUnderlyingType_ThrowsArgumentException() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void DefineEnum_ByRefUnderlyingType_ThrowsCOMExceptionOnCreation() { ModuleBuilder module = Helpers.DynamicModule(); diff --git a/src/libraries/System.Reflection.Emit/tests/ModuleBuilder/ModuleBuilderDefineType.cs b/src/libraries/System.Reflection.Emit/tests/ModuleBuilder/ModuleBuilderDefineType.cs index 844dcb8d18119..fe52f133e5b5c 100644 --- a/src/libraries/System.Reflection.Emit/tests/ModuleBuilder/ModuleBuilderDefineType.cs +++ b/src/libraries/System.Reflection.Emit/tests/ModuleBuilder/ModuleBuilderDefineType.cs @@ -33,6 +33,7 @@ public static IEnumerable TestData() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(TestData))] public void DefineType(string name, TypeAttributes attributes, Type parent, PackingSize packingSize, int typesize, Type[] implementedInterfaces) { diff --git a/src/libraries/System.Reflection.Emit/tests/ModuleBuilder/ModuleBuilderGetArrayMethod.cs b/src/libraries/System.Reflection.Emit/tests/ModuleBuilder/ModuleBuilderGetArrayMethod.cs index 973cf1d9e3608..4e7f8e5799cf6 100644 --- a/src/libraries/System.Reflection.Emit/tests/ModuleBuilder/ModuleBuilderGetArrayMethod.cs +++ b/src/libraries/System.Reflection.Emit/tests/ModuleBuilder/ModuleBuilderGetArrayMethod.cs @@ -25,6 +25,7 @@ public static IEnumerable CallingConventions_TestData() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(CallingConventions_TestData))] public void GetArrayMethod_ValidArrayValues_VoidReturnType(CallingConventions callingConvention) { @@ -33,6 +34,7 @@ public void GetArrayMethod_ValidArrayValues_VoidReturnType(CallingConventions ca } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(CallingConventions_TestData))] public void GetArrayMethod_ValidArrayValues_ValueReturnType(CallingConventions callingConvention) { @@ -41,6 +43,7 @@ public void GetArrayMethod_ValidArrayValues_ValueReturnType(CallingConventions c } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(CallingConventions_TestData))] public void GetArrayMethod_ValidArrayValues_ReferenceReturnType(CallingConventions callingConvention) { @@ -49,6 +52,7 @@ public void GetArrayMethod_ValidArrayValues_ReferenceReturnType(CallingConventio } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(CallingConventions_TestData))] public void GetArrayMethod_ValidArrayValues_ValueParameterType(CallingConventions callingConvention) { @@ -59,6 +63,7 @@ public void GetArrayMethod_ValidArrayValues_ValueParameterType(CallingConvention } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(CallingConventions_TestData))] public void GetArrayMethod_ValidArrayValues_ReferenceParameterType(CallingConventions callingConvention) { @@ -69,6 +74,7 @@ public void GetArrayMethod_ValidArrayValues_ReferenceParameterType(CallingConven } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(CallingConventions_TestData))] public void GetArrayMethod_JaggedArray(CallingConventions callingConvention) { @@ -79,6 +85,7 @@ public void GetArrayMethod_JaggedArray(CallingConventions callingConvention) } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(CallingConventions_TestData))] public void GetArrayMethod_MultiDimensionalArray(CallingConventions callingConvention) { @@ -89,6 +96,7 @@ public void GetArrayMethod_MultiDimensionalArray(CallingConventions callingConve } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(CallingConventions_TestData))] public void GetArrayMethod_NullParameters(CallingConventions callingConvention) { @@ -97,6 +105,7 @@ public void GetArrayMethod_NullParameters(CallingConventions callingConvention) } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [InlineData(typeof(ModuleBuilderGetArrayMethod))] [InlineData(typeof(int))] [InlineData(typeof(Array))] @@ -108,6 +117,7 @@ public void GetArrayMethod_ArrayClassNotArray_ThrowsArgumentException(Type array } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void GetArrayMethod_InvalidArgument_ThrowsArgumentException() { ModuleBuilder module = Helpers.DynamicModule(); diff --git a/src/libraries/System.Reflection.Emit/tests/PropertyBuilder/PropertyBuilderAddOtherMethod.cs b/src/libraries/System.Reflection.Emit/tests/PropertyBuilder/PropertyBuilderAddOtherMethod.cs index 6db64d1fa8975..dc3b4cdecfba8 100644 --- a/src/libraries/System.Reflection.Emit/tests/PropertyBuilder/PropertyBuilderAddOtherMethod.cs +++ b/src/libraries/System.Reflection.Emit/tests/PropertyBuilder/PropertyBuilderAddOtherMethod.cs @@ -9,6 +9,7 @@ namespace System.Reflection.Emit.Tests public class PropertyBuilderTest2 { [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [InlineData(MethodAttributes.Public, CallingConventions.HasThis, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance)] [InlineData(MethodAttributes.Private, CallingConventions.HasThis, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance)] [InlineData(MethodAttributes.Public | MethodAttributes.Static, CallingConventions.Any, BindingFlags.Public | BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.Instance)] diff --git a/src/libraries/System.Reflection.Emit/tests/PropertyBuilder/PropertyBuilderSetConstant.cs b/src/libraries/System.Reflection.Emit/tests/PropertyBuilder/PropertyBuilderSetConstant.cs index 9a38fb9384146..7df6848dc130e 100644 --- a/src/libraries/System.Reflection.Emit/tests/PropertyBuilder/PropertyBuilderSetConstant.cs +++ b/src/libraries/System.Reflection.Emit/tests/PropertyBuilder/PropertyBuilderSetConstant.cs @@ -42,6 +42,7 @@ public static IEnumerable SetConstant_TestData() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(SetConstant_TestData))] public void SetConstant(Type returnType, object defaultValue) { @@ -83,6 +84,7 @@ public void SetConstant_TypeAlreadyCreated_ThrowsInvalidOperationException() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void SetConstant_TypeNotConstant_ThrowsArgumentException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Class | TypeAttributes.Public); diff --git a/src/libraries/System.Reflection.Emit/tests/PropertyBuilder/PropertyBuilderSetCustomAttribute.cs b/src/libraries/System.Reflection.Emit/tests/PropertyBuilder/PropertyBuilderSetCustomAttribute.cs index f7a8dc77644c0..6a3aea0752425 100644 --- a/src/libraries/System.Reflection.Emit/tests/PropertyBuilder/PropertyBuilderSetCustomAttribute.cs +++ b/src/libraries/System.Reflection.Emit/tests/PropertyBuilder/PropertyBuilderSetCustomAttribute.cs @@ -53,6 +53,7 @@ public void SetCustomAttribute_CustomAttributeBuilder_NullBuilder_ThrowsArgument } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void SetCustomAttribute_CustomAttributeBuilder_TypeNotCreated_ThrowsInvalidOperationException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Class | TypeAttributes.Public); @@ -116,6 +117,7 @@ public void SetCustomAttribute_ConstructorInfo_ByteArray_NullConstructorInfo_Thr [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void SetCustomAttribute_ConstructorInfo_ByteArray_TypeAlreadyCreated_ThrowsInvalidOperationException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Class | TypeAttributes.Public); diff --git a/src/libraries/System.Reflection.Emit/tests/PropertyBuilder/PropertyBuilderSetSetMethod.cs b/src/libraries/System.Reflection.Emit/tests/PropertyBuilder/PropertyBuilderSetSetMethod.cs index 251937ee18784..35b792f2fb10e 100644 --- a/src/libraries/System.Reflection.Emit/tests/PropertyBuilder/PropertyBuilderSetSetMethod.cs +++ b/src/libraries/System.Reflection.Emit/tests/PropertyBuilder/PropertyBuilderSetSetMethod.cs @@ -35,6 +35,7 @@ public void SetSetMethod_NullMethodBuilder_ThrowsArgumentNullException() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void TestThrowsExceptionForCreateTypeCalled() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Class | TypeAttributes.Public); diff --git a/src/libraries/System.Reflection.Emit/tests/PropertyBuilder/PropertyBuilderSetValue.cs b/src/libraries/System.Reflection.Emit/tests/PropertyBuilder/PropertyBuilderSetValue.cs index ce35cdcfcb5b4..a1cb5738ef4b9 100644 --- a/src/libraries/System.Reflection.Emit/tests/PropertyBuilder/PropertyBuilderSetValue.cs +++ b/src/libraries/System.Reflection.Emit/tests/PropertyBuilder/PropertyBuilderSetValue.cs @@ -9,6 +9,7 @@ namespace System.Reflection.Emit.Tests public class PropertyBuilderTest16 { [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void SetValue_ThrowsNotSupportedException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Class | TypeAttributes.Public); diff --git a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderAddInterfaceImplementaion.cs b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderAddInterfaceImplementaion.cs index b8ae31f62551a..6c1ca4d3fac1b 100644 --- a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderAddInterfaceImplementaion.cs +++ b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderAddInterfaceImplementaion.cs @@ -93,6 +93,7 @@ public static IEnumerable NonInterfaceTypes_TestData() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(NonInterfaceTypes_TestData))] public void AddInterfaceImplementation_TypeNotInterface_ThrowsTypeLoadExceptionOnCreation(Type interfaceType) { @@ -114,6 +115,7 @@ public void AddInterfaceImplementation_OpenGenericType_ThrowsBadImageFormatExcep } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void AddInterfaceImplementation_TypeDoesntImplementInterface_ThrowsTypeLoadExceptionOnCreation() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); diff --git a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderAssemblyQualifiedName.cs b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderAssemblyQualifiedName.cs index 9be6b1cdb55da..6d6f22c12278f 100644 --- a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderAssemblyQualifiedName.cs +++ b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderAssemblyQualifiedName.cs @@ -9,6 +9,7 @@ namespace System.Reflection.Emit.Tests public class TypeBuilderAssemblyQualifiedName { [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [InlineData("TypeName", "ad df df")] [InlineData("TypeName", "assemblyname")] [InlineData("type name ", "assembly name ")] diff --git a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderCreateType.cs b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderCreateType.cs index 1dcbc83a054d4..c07fe8f86a523 100644 --- a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderCreateType.cs +++ b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderCreateType.cs @@ -31,6 +31,7 @@ public void CreateType(TypeAttributes attributes) } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [InlineData(TypeAttributes.ClassSemanticsMask)] [InlineData(TypeAttributes.HasSecurity)] [InlineData(TypeAttributes.LayoutMask)] diff --git a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderCreateTypeInfo.cs b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderCreateTypeInfo.cs index aadf3a8cbbb49..d114ef86d88fa 100644 --- a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderCreateTypeInfo.cs +++ b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderCreateTypeInfo.cs @@ -51,6 +51,7 @@ public void CreateType_GenericType() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [InlineData(TypeAttributes.ClassSemanticsMask, typeof(InvalidOperationException))] [InlineData(TypeAttributes.HasSecurity, typeof(ArgumentException))] [InlineData(TypeAttributes.LayoutMask, typeof(ArgumentException))] diff --git a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineConstructor.cs b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineConstructor.cs index 44a216e894b8a..7de9d167ecb11 100644 --- a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineConstructor.cs +++ b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineConstructor.cs @@ -35,6 +35,7 @@ public static IEnumerable TestData() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(TestData))] public void DefineConstructor(MethodAttributes attributes, Type[] parameterTypes, CallingConventions callingConvention) { @@ -64,6 +65,7 @@ public void DefineConstructor(MethodAttributes attributes, Type[] parameterTypes } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(TestData))] public void DefineConstructor_NullRequiredAndOptionalCustomModifiers(MethodAttributes attributes, Type[] parameterTypes, CallingConventions callingConvention) { diff --git a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineDefaultConstructor.cs b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineDefaultConstructor.cs index b0a23a849eda3..bb4258c0fcb47 100644 --- a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineDefaultConstructor.cs +++ b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineDefaultConstructor.cs @@ -10,6 +10,7 @@ namespace System.Reflection.Emit.Tests public class TypeBuilderDefineDefaultConstructor { [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [InlineData(MethodAttributes.Public)] [InlineData(MethodAttributes.Static)] [InlineData(MethodAttributes.Family)] diff --git a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineEvent.cs b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineEvent.cs index 04134cb2ecc55..39d44aa9da75e 100644 --- a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineEvent.cs +++ b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineEvent.cs @@ -27,6 +27,7 @@ public static IEnumerable TestData() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(TestData))] public void DefineEvent(string name, EventAttributes attributes, Type eventType, string expectedName, EventAttributes expectedAttributes) { diff --git a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineField.cs b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineField.cs index a9aaefbe7b8f0..3a36298510ca2 100644 --- a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineField.cs +++ b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineField.cs @@ -33,6 +33,7 @@ public static IEnumerable TestData() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(TestData))] public void DefineField(string name, Type fieldType, FieldAttributes attributes, FieldAttributes expectedAttributes) { @@ -112,6 +113,7 @@ public void DefineField_ByRefFieldType_ThrowsCOMExceptionOnCreation() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [InlineData((FieldAttributes)(-1), (FieldAttributes)(-38145))] [InlineData(FieldAttributes.FieldAccessMask, FieldAttributes.FieldAccessMask)] [InlineData((FieldAttributes)int.MaxValue, (FieldAttributes)2147445503)] @@ -125,6 +127,7 @@ public void DefineField_InvalidFieldAttributes_ThrowsTypeLoadExceptionOnCreation } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void DefineField_DynamicFieldTypeNotCreated_ThrowsTypeLoadException() { ModuleBuilder module = Helpers.DynamicModule(); diff --git a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineGenericParameters.cs b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineGenericParameters.cs index c00ccf842fb4c..40e1efc2f8b86 100644 --- a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineGenericParameters.cs +++ b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineGenericParameters.cs @@ -73,6 +73,7 @@ public void DefineGenericParameters_NullName_ThrowsArgumentNullException() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void DefineGenericParameters_AlreadyDefinedGenericParameters_ThrowsInvalidOperationException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); diff --git a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineMethod.cs b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineMethod.cs index 91dfe8bc14f68..f7fe0c1d4510f 100644 --- a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineMethod.cs +++ b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineMethod.cs @@ -63,6 +63,7 @@ public static IEnumerable TestData() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(TestData))] public void DefineMethod(string name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] parameterTypes) { diff --git a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineMethodOverride.cs b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineMethodOverride.cs index e967e76ab3301..fa33096e3636d 100644 --- a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineMethodOverride.cs +++ b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineMethodOverride.cs @@ -168,6 +168,7 @@ public void DefineMethodOverride_MethodNotVirtual_ThrowsTypeLoadExceptionOnCreat } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void DefineMethodOverride_NothingToOverride_ThrowsTypeLoadExceptionOnCreation() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); @@ -180,6 +181,7 @@ public void DefineMethodOverride_NothingToOverride_ThrowsTypeLoadExceptionOnCrea } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [InlineData(typeof(GenericInterface<>), nameof(GenericInterface.Method))] [InlineData(typeof(DefineMethodOverrideInterface), nameof(DefineMethodOverrideInterface.M))] public void DefineMethodOverride_ClassDoesNotImplementOrInheritMethod_ThrowsTypeLoadExceptionOnCreation(Type methodType, string methodName) @@ -196,6 +198,7 @@ public void DefineMethodOverride_ClassDoesNotImplementOrInheritMethod_ThrowsType } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void DefineMethodOverride_BodyAndDeclarationTheSame_ThrowsTypeLoadExceptionOnCreation() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); @@ -210,6 +213,7 @@ public void DefineMethodOverride_BodyAndDeclarationTheSame_ThrowsTypeLoadExcepti } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void DefineMethodOverride_CalledTwiceWithDifferentBodies_ThrowsTypeLoadExceptionOnCreation() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); @@ -232,6 +236,7 @@ public void DefineMethodOverride_CalledTwiceWithDifferentBodies_ThrowsTypeLoadEx } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [InlineData(typeof(int), new Type[0])] [InlineData(typeof(int), new Type[] { typeof(int), typeof(int) })] [InlineData(typeof(int), new Type[] { typeof(string), typeof(string) })] diff --git a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineNestedType.cs b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineNestedType.cs index dd82904de5295..f17f3a7c022f1 100644 --- a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineNestedType.cs +++ b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineNestedType.cs @@ -55,6 +55,7 @@ public static IEnumerable TestData() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(TestData))] public void DefineNestedType(string name, TypeAttributes attributes, Type parent, PackingSize packingSize, int typesize, Type[] implementedInterfaces) { @@ -144,6 +145,7 @@ public void DefineNestedType_EmptyName_ThrowsArgumentException(string fullname) } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void DefineNestedType_LongName_ThrowsArgumentException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.NotPublic); @@ -151,6 +153,7 @@ public void DefineNestedType_LongName_ThrowsArgumentException() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [InlineData(TypeAttributes.Public, "attr")] [InlineData(TypeAttributes.NotPublic, "attr")] [InlineData(TypeAttributes.Interface, "attr")] @@ -166,6 +169,7 @@ public void DefineNestedType_InvalidAttributes_ThrowsArgumentException(TypeAttri } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void DefineNestedType_InvalidParent_ThrowsArgumentException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); @@ -226,6 +230,7 @@ public static IEnumerable InvalidInterfaceType_TestData() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(InvalidInterfaceType_TestData))] public void DefineNestedType_InvalidInterfaceType_ThrowsTypeLoadExceptionOnCreation(Type interfaceType) { diff --git a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineProperty.cs b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineProperty.cs index d994c8b915974..3be18d379154a 100644 --- a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineProperty.cs +++ b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineProperty.cs @@ -30,6 +30,7 @@ public static IEnumerable TestData() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] [MemberData(nameof(TestData))] public void DefineProperty(string name, PropertyAttributes attributes, Type returnType, Type[] parameterTypes, string expectedName, PropertyAttributes expectedPropertyAttributes) { @@ -137,6 +138,7 @@ public void DefineProperty_TypeCreated_ThrowsInvalidOperationException() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void DefineProperty_OpenGenericReturnType_ThrowsBadImageFormatExceptionGettingCreatedPropertyType() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); @@ -148,6 +150,7 @@ public void DefineProperty_OpenGenericReturnType_ThrowsBadImageFormatExceptionGe } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void DefineProperty_NullParameterType_ThrowsArgumentNullException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); @@ -155,6 +158,7 @@ public void DefineProperty_NullParameterType_ThrowsArgumentNullException() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void DefineProperty_OpenGenericParameterType_ThrowsBadImageFormatExceptionGettingCreatedPropertyType() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); @@ -166,6 +170,7 @@ public void DefineProperty_OpenGenericParameterType_ThrowsBadImageFormatExceptio } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void DefineProperty_DynamicPropertyTypeNotCreated_ThrowsTypeLoadException() { ModuleBuilder module = Helpers.DynamicModule(); @@ -182,6 +187,7 @@ public void DefineProperty_DynamicPropertyTypeNotCreated_ThrowsTypeLoadException } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void DefineProperty_DynamicParameterTypeNotCreated_ThrowsTypeLoadException() { ModuleBuilder module = Helpers.DynamicModule(); @@ -198,6 +204,7 @@ public void DefineProperty_DynamicParameterTypeNotCreated_ThrowsTypeLoadExceptio } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void DefineProperty_CalledMultipleTimes_Works() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Class | TypeAttributes.Public); diff --git a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineTypeInitializer.cs b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineTypeInitializer.cs index c662cc824f6eb..37e3b4f53a65e 100644 --- a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineTypeInitializer.cs +++ b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderDefineTypeInitializer.cs @@ -9,6 +9,7 @@ namespace System.Reflection.Emit.Tests public class MethodBuilderDefineTypeInitializer { [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void DefineTypeInitializer() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); diff --git a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderGUID.cs b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderGUID.cs index cffcba9955996..0215401abac11 100644 --- a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderGUID.cs +++ b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderGUID.cs @@ -9,6 +9,7 @@ namespace System.Reflection.Emit.Tests public class TypeBuilderGUID { [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void Guid_TypeCreated_NotEmpty() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.NotPublic); diff --git a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderGetConstructor.cs b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderGetConstructor.cs index aaa4c951f22ce..e9ac5aaa2c476 100644 --- a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderGetConstructor.cs +++ b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderGetConstructor.cs @@ -33,12 +33,14 @@ public void GetConstructor() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void GetConstructor_TypeNotTypeBuilder_ThrowsArgumentException() { AssertExtensions.Throws(null, () => TypeBuilder.GetConstructor(typeof(int), typeof(int).GetConstructor(new Type[0]))); } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void GetConstructor_DeclaringTypeOfConstructorNotGenericTypeDefinitionOfType_ThrowsArgumentException() { ModuleBuilder module = Helpers.DynamicModule(); @@ -57,6 +59,7 @@ public void GetConstructor_DeclaringTypeOfConstructorNotGenericTypeDefinitionOfT } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void GetConstructor_TypeNotGeneric_ThrowsArgumentException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Class | TypeAttributes.Public); diff --git a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderGetField.cs b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderGetField.cs index b3b0e43b8cab9..f3edbe46fbfa7 100644 --- a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderGetField.cs +++ b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderGetField.cs @@ -33,12 +33,14 @@ public void GetField() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void GetField_TypeNotTypeBuilder_ThrowsArgumentException() { AssertExtensions.Throws(null, () => TypeBuilder.GetField(typeof(int), typeof(int).GetField("MaxValue"))); } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void GetField_DeclaringTypeOfFieldNotGenericTypeDefinitionOfType_ThrowsArgumentException() { ModuleBuilder module = Helpers.DynamicModule(); @@ -56,6 +58,7 @@ public void GetField_DeclaringTypeOfFieldNotGenericTypeDefinitionOfType_ThrowsAr } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void GetField_TypeNotGeneric_ThrowsArgumentException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Class | TypeAttributes.Public); diff --git a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderGetMethod.cs b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderGetMethod.cs index 48f04daf7c57a..9ab5a1587db67 100644 --- a/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderGetMethod.cs +++ b/src/libraries/System.Reflection.Emit/tests/TypeBuilder/TypeBuilderGetMethod.cs @@ -42,12 +42,14 @@ public void GetMethod_ConstructedTypeMethod() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void GetMethod_TypeNotTypeBuilder_ThrowsArgumentException() { AssertExtensions.Throws(null, () => TypeBuilder.GetMethod(typeof(int), typeof(int).GetMethod("Parse", new Type[] { typeof(string) }))); } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void GetMethod_MethodDefinitionNotInTypeGenericDefinition_ThrowsArgumentException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Class | TypeAttributes.Public); @@ -63,6 +65,7 @@ public void GetMethod_MethodDefinitionNotInTypeGenericDefinition_ThrowsArgumentE } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void GetMethod_MethodNotGenericTypeDefinition_ThrowsArgumentException() { ModuleBuilder module = Helpers.DynamicModule(); @@ -85,6 +88,7 @@ public void GetMethod_MethodNotGenericTypeDefinition_ThrowsArgumentException() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)] public void GetMethod_TypeIsNotGeneric_ThrowsArgumentException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Class | TypeAttributes.Public); diff --git a/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/CustomAttributes/DllImportTests.cs b/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/CustomAttributes/DllImportTests.cs index 3cefbb680be90..3bbd0f63d02ec 100644 --- a/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/CustomAttributes/DllImportTests.cs +++ b/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/CustomAttributes/DllImportTests.cs @@ -14,6 +14,7 @@ namespace System.Reflection.Tests { public static partial class CustomAttributeTests { + [ActiveIssue("https://github.com/mono/mono/issues/15340", TestRuntimes.Mono)] [Fact] public static void TestDllImportPseudoCustomAttribute() { @@ -47,6 +48,7 @@ private static void AssertEqual(DllImportAttribute d1, DllImportAttribute d2) } [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/15340", TestRuntimes.Mono)] [MemberData(nameof(MarshalAsTheoryData))] public static void TestMarshalAsPseudoCustomAttribute(string fieldName, MarshalAsAttribute expected) { diff --git a/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/Parameter/ParameterTests.cs b/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/Parameter/ParameterTests.cs index 3e7242535044a..69a517e21d8c9 100644 --- a/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/Parameter/ParameterTests.cs +++ b/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/Parameter/ParameterTests.cs @@ -68,6 +68,7 @@ public static void TestRawDefaultValue6() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15340", TestRuntimes.Mono)] public static void TestPseudoCustomAttributes() { MethodInfo m = typeof(ParametersWithPseudoCustomtAttributes).Project().GetTypeInfo().GetDeclaredMethod("Foo"); diff --git a/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/Type/TypeInvariants.cs b/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/Type/TypeInvariants.cs index 0cc5dd6a940c3..dd31553b10da1 100644 --- a/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/Type/TypeInvariants.cs +++ b/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/Type/TypeInvariants.cs @@ -14,6 +14,7 @@ namespace System.Reflection.Tests public static class TypeInvariants { [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15344", TestRuntimes.Mono)] public static void TestInvariantCode() { // These run some *runtime*-implemented Type objects through our invariant battery. diff --git a/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/Type/TypeTests.cs b/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/Type/TypeTests.cs index 1ae1a72f601b5..b9c63217c9de1 100644 --- a/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/Type/TypeTests.cs +++ b/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/Type/TypeTests.cs @@ -481,6 +481,7 @@ public static void TestComImportPseudoCustomAttribute() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15340", TestRuntimes.Mono)] public static void TestExplicitOffsetPseudoCustomAttribute() { Type t = typeof(ExplicitFieldOffsets).Project(); diff --git a/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/TypeInfoFromProjectN/TypeInfo_ImplementedInterfacesTests.cs b/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/TypeInfoFromProjectN/TypeInfo_ImplementedInterfacesTests.cs index 1d7a115427732..0cff334e27a4f 100644 --- a/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/TypeInfoFromProjectN/TypeInfo_ImplementedInterfacesTests.cs +++ b/src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/TypeInfoFromProjectN/TypeInfo_ImplementedInterfacesTests.cs @@ -32,6 +32,7 @@ public static void TestInterFaces3() // Verify implemented interfaces [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/18294", TestRuntimes.Mono)] public static void TestInterFaces4() { VerifyInterfaces(typeof(D1).Project(), new Type[] { typeof(ImI1).Project(), typeof(I0).Project(), typeof(I21).Project() }); @@ -39,6 +40,7 @@ public static void TestInterFaces4() // Verify implemented interfaces [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/18294", TestRuntimes.Mono)] public static void TestInterFaces5() { VerifyInterfaces(typeof(D2<>).Project(), new Type[] { typeof(ImI1).Project(), typeof(I0).Project(), typeof(I21).Project() }); @@ -46,6 +48,7 @@ public static void TestInterFaces5() // Verify implemented interfaces [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/18294", TestRuntimes.Mono)] public static void TestInterFaces6() { VerifyInterfaces(typeof(D2).Project(), new Type[] { typeof(ImI1).Project(), typeof(I0).Project(), typeof(I21).Project() }); diff --git a/src/libraries/System.Reflection.TypeExtensions/tests/ConstructorInfo/ConstructorInfoInvokeArrayTests.cs b/src/libraries/System.Reflection.TypeExtensions/tests/ConstructorInfo/ConstructorInfoInvokeArrayTests.cs index 4f3918bfee79e..024e912a41dcd 100644 --- a/src/libraries/System.Reflection.TypeExtensions/tests/ConstructorInfo/ConstructorInfoInvokeArrayTests.cs +++ b/src/libraries/System.Reflection.TypeExtensions/tests/ConstructorInfo/ConstructorInfoInvokeArrayTests.cs @@ -33,6 +33,7 @@ public void Invoke_SZArrayConstructor() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15316", TestRuntimes.Mono)] public void Invoke_1DArrayConstructor() { Type type = Type.GetType("System.Char[*]"); @@ -220,6 +221,7 @@ public void Invoke_2DArrayConstructor() } } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15318", TestRuntimes.Mono)] public void Invoke_LargeDimensionalArrayConstructor() { Type type = Type.GetType("System.Type[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,]"); diff --git a/src/libraries/System.Reflection.TypeExtensions/tests/ConstructorInfo/ConstructorInfoTests.cs b/src/libraries/System.Reflection.TypeExtensions/tests/ConstructorInfo/ConstructorInfoTests.cs index 052f887a20caf..37a6962b1d56c 100644 --- a/src/libraries/System.Reflection.TypeExtensions/tests/ConstructorInfo/ConstructorInfoTests.cs +++ b/src/libraries/System.Reflection.TypeExtensions/tests/ConstructorInfo/ConstructorInfoTests.cs @@ -64,6 +64,7 @@ public static IEnumerable Invoke_Invalid_TestData() } [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/15317", TestRuntimes.Mono)] [MemberData(nameof(Invoke_Invalid_TestData))] public void Invoke_Invalid(Type constructorParent, Type[] constructorTypeParameters, object[] parameters, Type exceptionType) { diff --git a/src/libraries/System.Reflection.TypeExtensions/tests/MetadataTokenTests.cs b/src/libraries/System.Reflection.TypeExtensions/tests/MetadataTokenTests.cs index e24b3bee6f992..12c7fbf904889 100644 --- a/src/libraries/System.Reflection.TypeExtensions/tests/MetadataTokenTests.cs +++ b/src/libraries/System.Reflection.TypeExtensions/tests/MetadataTokenTests.cs @@ -37,6 +37,7 @@ public event EventHandler Event { add { } remove { } } new object[] { typeof(Test<>).GetGenericArguments()[0].GetTypeInfo(), 0x2A } }; + [ActiveIssue("https://github.com/mono/mono/issues/15194", TestRuntimes.Mono)] [ConditionalTheory(nameof(GetMetadataTokenSupported))] [MemberData(nameof(MembersWithExpectedTableIndex))] public void SuccessImpliesNonNilWithCorrectTable(MemberInfo member, int expectedTableIndex) diff --git a/src/libraries/System.Reflection.TypeExtensions/tests/PropertyInfoTests.cs b/src/libraries/System.Reflection.TypeExtensions/tests/PropertyInfoTests.cs index 8a730c335fb8e..22af271aeb215 100644 --- a/src/libraries/System.Reflection.TypeExtensions/tests/PropertyInfoTests.cs +++ b/src/libraries/System.Reflection.TypeExtensions/tests/PropertyInfoTests.cs @@ -33,6 +33,7 @@ public void SetValue_CantWrite_ThrowsArgumentException() } [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/15319", TestRuntimes.Mono)] [InlineData(typeof(PI_BaseClass), nameof(PI_BaseClass.PublicGetPublicSetProperty), true, false, true, false)] [InlineData(typeof(PI_BaseClass), nameof(PI_BaseClass.PublicGetProperty1), true, false, false, false)] [InlineData(typeof(PI_BaseClass), nameof(PI_BaseClass.PublicSetProperty), false, false, true, false)] diff --git a/src/libraries/System.Reflection.TypeExtensions/tests/TypeTests.cs b/src/libraries/System.Reflection.TypeExtensions/tests/TypeTests.cs index ea5602d052b0c..246b5bf6c9656 100644 --- a/src/libraries/System.Reflection.TypeExtensions/tests/TypeTests.cs +++ b/src/libraries/System.Reflection.TypeExtensions/tests/TypeTests.cs @@ -329,6 +329,7 @@ public static IEnumerable GetMethods_TestData() } [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/15320", TestRuntimes.Mono)] [MemberData(nameof(GetMethods_TestData))] public void GetMethods(Type type, BindingFlags bindingAttributes, string[] expectedNames) { diff --git a/src/libraries/System.Reflection/tests/AssemblyTests.cs b/src/libraries/System.Reflection/tests/AssemblyTests.cs index 7d16eadadc061..bf54c57924410 100644 --- a/src/libraries/System.Reflection/tests/AssemblyTests.cs +++ b/src/libraries/System.Reflection/tests/AssemblyTests.cs @@ -319,6 +319,7 @@ public void LoadFile_NullPath_ThrowsArgumentNullException() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/31650", TestRuntimes.Mono)] public void LoadFile_NoSuchPath_ThrowsFileNotFoundException() { string rootedPath = Path.GetFullPath(Guid.NewGuid().ToString("N")); @@ -347,6 +348,7 @@ public void LoadFile_ValidPEBadIL_ThrowsBadImageFormatExceptionWithPath() } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/31649", TestRuntimes.Mono)] [InlineData(0)] [InlineData(5)] [InlineData(50)] diff --git a/src/libraries/System.Reflection/tests/ConstructorInfoTests.cs b/src/libraries/System.Reflection/tests/ConstructorInfoTests.cs index d0532f2228460..0907bfaff1885 100644 --- a/src/libraries/System.Reflection/tests/ConstructorInfoTests.cs +++ b/src/libraries/System.Reflection/tests/ConstructorInfoTests.cs @@ -70,6 +70,7 @@ public void Invoke_StaticConstructor_NullObject_NullParameters() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15024", TestRuntimes.Mono)] public void Invoke_StaticConstructor_ThrowsMemberAccessException() { ConstructorInfo[] constructors = GetConstructors(typeof(ClassWithStaticConstructor)); @@ -156,6 +157,7 @@ public void Invoke_ExistingInstance() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15026", TestRuntimes.Mono)] public void Invoke_AbstractClass_ThrowsMemberAccessException() { ConstructorInfo[] constructors = GetConstructors(typeof(ConstructorInfoAbstractBase)); diff --git a/src/libraries/System.Reflection/tests/CoreCLR/AssemblyTests.cs b/src/libraries/System.Reflection/tests/CoreCLR/AssemblyTests.cs index dcc602eed93e9..0c4a1174891ce 100644 --- a/src/libraries/System.Reflection/tests/CoreCLR/AssemblyTests.cs +++ b/src/libraries/System.Reflection/tests/CoreCLR/AssemblyTests.cs @@ -24,6 +24,7 @@ public void CurrentLocation_HasLocaton() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/22110", TestRuntimes.Mono)] public void LoadFromStream_Location_IsEmpty() { Assembly assembly = new TestStreamLoadContext().LoadFromAssemblyName(new AssemblyName("TinyAssembly")); diff --git a/src/libraries/System.Reflection/tests/MemberInfoTests.cs b/src/libraries/System.Reflection/tests/MemberInfoTests.cs index 32beee75be73f..bf9485853a402 100644 --- a/src/libraries/System.Reflection/tests/MemberInfoTests.cs +++ b/src/libraries/System.Reflection/tests/MemberInfoTests.cs @@ -341,6 +341,7 @@ public static void HasSameMetadataDefinitionAs_NamedAndGenericTypes() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15069", TestRuntimes.Mono)] public static void HasSameMetadataDefinitionAs_GenericTypeParameters() { Type theT = typeof(GenericTestClass<>).GetTypeInfo().GenericTypeParameters[0]; @@ -462,6 +463,7 @@ private static IEnumerable NegativeTypeDataRaw } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/31648", TestRuntimes.Mono)] public static void HasSameMetadataDefinitionAs__CornerCase_HasElementTypes() { // HasSameMetadataDefinitionAs on an array/byref/pointer type is uninteresting (they'll never be an actual member of a type) diff --git a/src/libraries/System.Reflection/tests/MethodInfoTests.cs b/src/libraries/System.Reflection/tests/MethodInfoTests.cs index e815e7a7ab320..7dfde375b9f08 100644 --- a/src/libraries/System.Reflection/tests/MethodInfoTests.cs +++ b/src/libraries/System.Reflection/tests/MethodInfoTests.cs @@ -328,6 +328,7 @@ public void Invoke_ParameterSpecification_ArrayOfMissing() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15025", TestRuntimes.Mono)] public static void Invoke_OptionalParameterUnassingableFromMissing_WithMissingValue_ThrowsArgumentException() { AssertExtensions.Throws(null, () => GetMethod(typeof(MethodInfoDefaultParameters), "OptionalStringParameter").Invoke(new MethodInfoDefaultParameters(), new object[] { Type.Missing })); diff --git a/src/libraries/System.Reflection/tests/ParameterInfoTests.cs b/src/libraries/System.Reflection/tests/ParameterInfoTests.cs index 95d1112dd603d..441e93ddc9d7b 100644 --- a/src/libraries/System.Reflection/tests/ParameterInfoTests.cs +++ b/src/libraries/System.Reflection/tests/ParameterInfoTests.cs @@ -109,6 +109,7 @@ public void RawDefaultValue_Enum() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15037", TestRuntimes.Mono)] public void RawDefaultValueFromAttribute() { ParameterInfo p = GetParameterInfo(typeof(ParameterInfoMetadata), "Foo2", 0); diff --git a/src/libraries/System.Reflection/tests/PropertyInfoTests.cs b/src/libraries/System.Reflection/tests/PropertyInfoTests.cs index 4f4594ab5121d..e6c18222ec115 100644 --- a/src/libraries/System.Reflection/tests/PropertyInfoTests.cs +++ b/src/libraries/System.Reflection/tests/PropertyInfoTests.cs @@ -82,6 +82,7 @@ public static IEnumerable GetValue_Invalid_TestData() } [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/15027", TestRuntimes.Mono)] [MemberData(nameof(GetValue_Invalid_TestData))] public void GetValue_Invalid(Type type, string name, object obj, object[] index, Type exceptionType) { diff --git a/src/libraries/System.Reflection/tests/TypeInfoTests.cs b/src/libraries/System.Reflection/tests/TypeInfoTests.cs index d74f6fa7a7bb2..9d6d9fdbb8890 100644 --- a/src/libraries/System.Reflection/tests/TypeInfoTests.cs +++ b/src/libraries/System.Reflection/tests/TypeInfoTests.cs @@ -471,6 +471,7 @@ public static void IsEnumDefined(object value, bool expected) } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15028", TestRuntimes.Mono)] public void IsEnumDefined_Invalid() { AssertExtensions.Throws("", () => typeof(NonGenericClassWithNoInterfaces).GetTypeInfo().IsEnumDefined(10)); @@ -709,6 +710,7 @@ public void GetConstructor(Type[] types, int? expected) } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15029", TestRuntimes.Mono)] public static void FindMembers() { MemberInfo[] members = typeof(MembersClass).GetTypeInfo().FindMembers(MemberTypes.All, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance, (MemberInfo memberInfo, object c) => true, "notused"); @@ -792,6 +794,7 @@ public void GetProperty() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15029", TestRuntimes.Mono)] public void GetMethod() { MethodInfo[] methods = typeof(MembersClass).GetTypeInfo().GetMethods(); @@ -810,6 +813,7 @@ public void GetMethod_Invalid() } [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/15029", TestRuntimes.Mono)] [InlineData(BindingFlags.Default, 9)] [InlineData(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance, 16)] public void GetMethods(BindingFlags bindingAttributes, int length) @@ -876,6 +880,7 @@ public void GetMember(string name, BindingFlags bindingAttributes, int length) } [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/15029", TestRuntimes.Mono)] [InlineData(BindingFlags.Default, 15)] [InlineData(BindingFlags.NonPublic | BindingFlags.Instance, 13)] [InlineData(BindingFlags.Public | BindingFlags.Instance, 15)] diff --git a/src/libraries/System.Runtime.Extensions/tests/System/AppDomainTests.cs b/src/libraries/System.Runtime.Extensions/tests/System/AppDomainTests.cs index 47f1ef16c4763..f7e2bb1cc1a00 100644 --- a/src/libraries/System.Runtime.Extensions/tests/System/AppDomainTests.cs +++ b/src/libraries/System.Runtime.Extensions/tests/System/AppDomainTests.cs @@ -167,6 +167,7 @@ public void FirstChanceException_Add_Remove() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16246", TestRuntimes.Mono)] public void FirstChanceException_Called() { RemoteExecutor.Invoke(() => { @@ -606,6 +607,7 @@ public void AssemblyResolve_RequestingAssembly() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16246", TestRuntimes.Mono)] public void AssemblyResolve_IsNotCalledForCoreLibResources() { RemoteExecutor.Invoke(() => @@ -668,6 +670,7 @@ public void TypeResolve() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16246", TestRuntimes.Mono)] public void ResourceResolve() { RemoteExecutor.Invoke(() => { @@ -907,6 +910,7 @@ public static IEnumerable TestingCreateInstanceObjectHandleFullSignatu } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/16246", TestRuntimes.Mono)] public void AssemblyResolve_FirstChanceException() { RemoteExecutor.Invoke(() => { diff --git a/src/libraries/System.Runtime.Extensions/tests/System/Environment.StackTrace.cs b/src/libraries/System.Runtime.Extensions/tests/System/Environment.StackTrace.cs index 4865e9dab394e..15f2b5b3ef1d8 100644 --- a/src/libraries/System.Runtime.Extensions/tests/System/Environment.StackTrace.cs +++ b/src/libraries/System.Runtime.Extensions/tests/System/Environment.StackTrace.cs @@ -16,6 +16,7 @@ public class EnvironmentStackTrace static string s_stackTrace; [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15315", TestRuntimes.Mono)] public void StackTraceTest() { //arrange diff --git a/src/libraries/System.Runtime.Extensions/tests/System/Runtime/ProfileOptimization.cs b/src/libraries/System.Runtime.Extensions/tests/System/Runtime/ProfileOptimization.cs index 83ef8f947ac2f..eccec2be5a56f 100644 --- a/src/libraries/System.Runtime.Extensions/tests/System/Runtime/ProfileOptimization.cs +++ b/src/libraries/System.Runtime.Extensions/tests/System/Runtime/ProfileOptimization.cs @@ -12,6 +12,7 @@ namespace System.Runtime.Tests public class ProfileOptimizationTest : FileCleanupTestBase { [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/31853", TestRuntimes.Mono)] public void ProfileOptimization_CheckFileExists() { string profileFile = GetTestFileName(); diff --git a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/DestroyStructureTests.cs b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/DestroyStructureTests.cs index 0e32157e4ab11..c0e26a720ad59 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/DestroyStructureTests.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/DestroyStructureTests.cs @@ -92,6 +92,7 @@ public static IEnumerable DestroyStructure_InvalidType_TestData() } [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/15087", TestRuntimes.Mono)] [MemberData(nameof(DestroyStructure_InvalidType_TestData))] public void DestroyStructure_NonRuntimeType_ThrowsArgumentException(Type invalidType) { diff --git a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/GetExceptionCodeTests.cs b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/GetExceptionCodeTests.cs index c3f4ababc893b..f89c73ab5c6cc 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/GetExceptionCodeTests.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/GetExceptionCodeTests.cs @@ -8,6 +8,7 @@ namespace System.Runtime.InteropServices.Tests { + [SkipOnMono("Marshal.GetExceptionCode will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public class GetExceptionCodeTests { [Fact] diff --git a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/GetExceptionForHRTests.cs b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/GetExceptionForHRTests.cs index 4322bfd83000d..985cc09f7905c 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/GetExceptionForHRTests.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/GetExceptionForHRTests.cs @@ -10,6 +10,7 @@ namespace System.Runtime.InteropServices.Tests public class GetExceptionForHRTests { [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/15093", TestRuntimes.Mono)] [InlineData(unchecked((int)0x80020006))] [InlineData(unchecked((int)0x80020101))] public void GetExceptionForHR_NoErrorInfo_ReturnsValidException(int errorCode) @@ -35,6 +36,7 @@ public static IEnumerable GetExceptionForHR_ErrorInfo_TestData() } [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/15093", TestRuntimes.Mono)] [MemberData(nameof(GetExceptionForHR_ErrorInfo_TestData))] public void GetExceptionForHR_ErrorInfo_ReturnsValidException(int errorCode, IntPtr errorInfo) { diff --git a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/GetExceptionPointersTests.cs b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/GetExceptionPointersTests.cs index ee6c552e3a50b..1403d42b28fae 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/GetExceptionPointersTests.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/GetExceptionPointersTests.cs @@ -9,6 +9,7 @@ namespace System.Runtime.InteropServices.Tests public class GetExceptionPointersTests { [Fact] + [SkipOnMono("Marshal.GetExceptionPointers will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void GetExceptionPointers_ReturnsExpected() { Assert.Equal(IntPtr.Zero, Marshal.GetExceptionPointers()); diff --git a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/GetFunctionPointerForDelegateTests.cs b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/GetFunctionPointerForDelegateTests.cs index f4bfb08d23280..a1657dffbdce1 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/GetFunctionPointerForDelegateTests.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/GetFunctionPointerForDelegateTests.cs @@ -81,6 +81,7 @@ public void GetFunctionPointerForDelegate_ObjectNotDelegate_ThrowsInvalidCastExc } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15097", TestRuntimes.Mono)] public void GetFunctionPointer_GenericDelegate_ThrowsArgumentException() { MethodInfo targetMethod = typeof(GetFunctionPointerForDelegateTests).GetMethod(nameof(Method), BindingFlags.NonPublic | BindingFlags.Static); diff --git a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/OffsetOfTests.cs b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/OffsetOfTests.cs index c5bc193b638c0..fff0898567261 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/OffsetOfTests.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/OffsetOfTests.cs @@ -209,6 +209,7 @@ public static IEnumerable OffsetOf_NotMarshallable_TestData() } [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/15087", TestRuntimes.Mono)] [MemberData(nameof(OffsetOf_NotMarshallable_TestData))] public void OffsetOf_NotMarshallable_ThrowsArgumentException(Type t, string fieldName) { diff --git a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/PtrToStructureTests.cs b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/PtrToStructureTests.cs index 760944dca590a..6ab62723f6253 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/PtrToStructureTests.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/PtrToStructureTests.cs @@ -126,6 +126,7 @@ public void PtrToStructure_ZeroPointerWithType_ReturnsNull() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15101", TestRuntimes.Mono)] public void PtrToStructure_ZeroPointer_ThrowsArgumentNullException() { AssertExtensions.Throws("ptr", () => Marshal.PtrToStructure(IntPtr.Zero, (object)new SomeTestStruct())); diff --git a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ReadWrite/ByteTests.cs b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ReadWrite/ByteTests.cs index 5877afdcadd6f..750dca4d26343 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ReadWrite/ByteTests.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ReadWrite/ByteTests.cs @@ -44,6 +44,7 @@ public void WriteByte_Pointer_Roundtrips(byte[] values) } [Fact] + [SkipOnMono("Marshal.WriteByte will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void WriteByte_BlittableObject_Roundtrips() { int offset1 = Marshal.OffsetOf(nameof(BlittableStruct.value1)).ToInt32(); @@ -65,6 +66,7 @@ public void WriteByte_BlittableObject_Roundtrips() } [Fact] + [SkipOnMono("Marshal.WriteByte will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void WriteByte_StructWithReferenceTypes_ReturnsExpected() { int pointerOffset = Marshal.OffsetOf(nameof(StructWithReferenceTypes.pointerValue)).ToInt32(); @@ -89,6 +91,7 @@ public void WriteByte_StructWithReferenceTypes_ReturnsExpected() } [Fact] + [SkipOnMono("Marshal.ReadByte will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void ReadByte_BlittableObject_ReturnsExpected() { int offset1 = Marshal.OffsetOf(nameof(BlittableStruct.value1)).ToInt32(); @@ -105,6 +108,7 @@ public void ReadByte_BlittableObject_ReturnsExpected() } [Fact] + [SkipOnMono("Marshal.ReadByte will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void ReadByte_StructWithReferenceTypes_ReturnsExpected() { int pointerOffset = Marshal.OffsetOf(nameof(StructWithReferenceTypes.pointerValue)).ToInt32(); @@ -135,12 +139,14 @@ public void ReadByte_ZeroPointer_ThrowsException() } [Fact] + [SkipOnMono("Marshal.ReadByte will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void ReadByte_NullObject_ThrowsAccessViolationException() { Assert.Throws(() => Marshal.ReadByte(null, 2)); } [Fact] + [SkipOnMono("Marshal.ReadByte will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void ReadByte_NotReadable_ThrowsArgumentException() { AssemblyBuilder assemblyBuilder = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName("Assembly"), AssemblyBuilderAccess.RunAndCollect); @@ -160,12 +166,14 @@ public void WriteByte_ZeroPointer_ThrowsException() } [Fact] + [SkipOnMono("Marshal.WriteByte will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void WriteByte_NullObject_ThrowsAccessViolationException() { Assert.Throws(() => Marshal.WriteByte(null, 2, 0)); } [Fact] + [SkipOnMono("Marshal.WriteByte will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void WriteByte_NotReadable_ThrowsArgumentException() { AssemblyBuilder assemblyBuilder = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName("Assembly"), AssemblyBuilderAccess.RunAndCollect); diff --git a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ReadWrite/Int16Tests.cs b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ReadWrite/Int16Tests.cs index 4d364e13d2239..656fdffef1abf 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ReadWrite/Int16Tests.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ReadWrite/Int16Tests.cs @@ -44,6 +44,7 @@ public void WriteInt16_Pointer_Roundtrips(short[] values) } [Fact] + [SkipOnMono("Marshal.WriteInt16 will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void WriteInt16_BlittableObject_Roundtrips() { int offset1 = Marshal.OffsetOf(nameof(BlittableStruct.value1)).ToInt32(); @@ -65,6 +66,7 @@ public void WriteInt16_BlittableObject_Roundtrips() } [Fact] + [SkipOnMono("Marshal.WriteInt16 will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void WriteInt16_StructWithReferenceTypes_ReturnsExpected() { int pointerOffset = Marshal.OffsetOf(nameof(StructWithReferenceTypes.pointerValue)).ToInt32(); @@ -89,6 +91,7 @@ public void WriteInt16_StructWithReferenceTypes_ReturnsExpected() } [Fact] + [SkipOnMono("Marshal.ReadInt16 will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void ReadInt16_BlittableObject_ReturnsExpected() { int offset1 = Marshal.OffsetOf(nameof(BlittableStruct.value1)).ToInt32(); @@ -105,6 +108,7 @@ public void ReadInt16_BlittableObject_ReturnsExpected() } [Fact] + [SkipOnMono("Marshal.ReadInt16 will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void ReadInt16_StructWithReferenceTypes_ReturnsExpected() { int pointerOffset = Marshal.OffsetOf(nameof(StructWithReferenceTypes.pointerValue)).ToInt32(); @@ -130,12 +134,14 @@ public void ReadInt16_ZeroPointer_ThrowsException() } [Fact] + [SkipOnMono("Marshal.ReadInt16 will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void ReadInt16_NullObject_ThrowsAccessViolationException() { Assert.Throws(() => Marshal.ReadInt16(null, 2)); } [Fact] + [SkipOnMono("Marshal.ReadInt16 will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void ReadInt16_NotReadable_ThrowsArgumentException() { AssemblyBuilder assemblyBuilder = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName("Assembly"), AssemblyBuilderAccess.RunAndCollect); @@ -155,12 +161,14 @@ public void WriteInt16_ZeroPointer_ThrowsException() } [Fact] + [SkipOnMono("Marshal.WriteInt16 will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void WriteInt16_NullObject_ThrowsAccessViolationException() { Assert.Throws(() => Marshal.WriteInt16(null, 2, 0)); } [Fact] + [SkipOnMono("Marshal.WriteInt16 will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void WriteInt16_NotReadable_ThrowsArgumentException() { AssemblyBuilder assemblyBuilder = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName("Assembly"), AssemblyBuilderAccess.RunAndCollect); diff --git a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ReadWrite/Int32Tests.cs b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ReadWrite/Int32Tests.cs index f1006e93e7bf1..42e0e7e64d525 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ReadWrite/Int32Tests.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ReadWrite/Int32Tests.cs @@ -44,6 +44,7 @@ public void WriteInt32_Pointer_Roundtrips(int[] values) } [Fact] + [SkipOnMono("Marshal.WriteInt32 will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void WriteInt32_BlittableObject_Roundtrips() { int offset1 = Marshal.OffsetOf(nameof(BlittableStruct.value1)).ToInt32(); @@ -65,6 +66,7 @@ public void WriteInt32_BlittableObject_Roundtrips() } [Fact] + [SkipOnMono("Marshal.WriteInt32 will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void WriteInt32_StructWithReferenceTypes_ReturnsExpected() { int pointerOffset = Marshal.OffsetOf(nameof(StructWithReferenceTypes.pointerValue)).ToInt32(); @@ -90,6 +92,7 @@ public void WriteInt32_StructWithReferenceTypes_ReturnsExpected() } [Fact] + [SkipOnMono("Marshal.ReadInt32 will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void ReadInt32_BlittableObject_ReturnsExpected() { int offset1 = Marshal.OffsetOf(nameof(BlittableStruct.value1)).ToInt32(); @@ -106,6 +109,7 @@ public void ReadInt32_BlittableObject_ReturnsExpected() } [Fact] + [SkipOnMono("Marshal.ReadInt32 will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void ReadInt32_StructWithReferenceTypes_ReturnsExpected() { int pointerOffset = Marshal.OffsetOf(nameof(StructWithReferenceTypes.pointerValue)).ToInt32(); @@ -132,12 +136,14 @@ public void ReadInt32_ZeroPoint_ThrowsException() } [Fact] + [SkipOnMono("Marshal.ReadInt32 will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void ReadInt32_NullObject_ThrowsAccessViolationException() { Assert.Throws(() => Marshal.ReadInt32(null, 2)); } [Fact] + [SkipOnMono("Marshal.ReadInt32 will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void ReadInt32_NotReadable_ThrowsArgumentException() { AssemblyBuilder assemblyBuilder = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName("Assembly"), AssemblyBuilderAccess.RunAndCollect); @@ -157,12 +163,14 @@ public void WriteInt32_ZeroPointer_ThrowsException() } [Fact] + [SkipOnMono("Marshal.WriteInt32 will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void WriteInt32_NullObject_ThrowsAccessViolationException() { Assert.Throws(() => Marshal.WriteInt32(null, 2, 0)); } [Fact] + [SkipOnMono("Marshal.WriteInt32 will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void WriteInt32_NotReadable_ThrowsArgumentException() { AssemblyBuilder assemblyBuilder = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName("Assembly"), AssemblyBuilderAccess.RunAndCollect); diff --git a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ReadWrite/Int64Tests.cs b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ReadWrite/Int64Tests.cs index aa2869eb31c51..01e78d2ace851 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ReadWrite/Int64Tests.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ReadWrite/Int64Tests.cs @@ -44,6 +44,7 @@ public void WriteInt64_Pointer_Roundtrips(long[] values) } [Fact] + [SkipOnMono("Marshal.WriteInt64 will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void WriteInt64_BlittableObject_Roundtrips() { int offset1 = Marshal.OffsetOf(nameof(BlittableStruct.value1)).ToInt32(); @@ -65,6 +66,7 @@ public void WriteInt64_BlittableObject_Roundtrips() } [Fact] + [SkipOnMono("Marshal.WriteInt64 will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void WriteInt64_StructWithReferenceTypes_ReturnsExpected() { int pointerOffset = Marshal.OffsetOf(nameof(StructWithReferenceTypes.pointerValue)).ToInt32(); @@ -99,6 +101,7 @@ public void WriteInt64_StructWithReferenceTypes_ReturnsExpected() } [Fact] + [SkipOnMono("Marshal.ReadInt64 will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void ReadInt64_BlittableObject_ReturnsExpected() { int offset1 = Marshal.OffsetOf(nameof(BlittableStruct.value1)).ToInt32(); @@ -115,6 +118,7 @@ public void ReadInt64_BlittableObject_ReturnsExpected() } [Fact] + [SkipOnMono("Marshal.ReadInt64 will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void ReadInt64_StructWithReferenceTypes_ReturnsExpected() { int pointerOffset = Marshal.OffsetOf(nameof(StructWithReferenceTypes.pointerValue)).ToInt32(); @@ -144,12 +148,14 @@ public void ReadInt64_ZeroPointer_ThrowsException() } [Fact] + [SkipOnMono("Marshal.ReadInt64 will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void ReadInt64_NullObject_ThrowsAccessViolationException() { Assert.Throws(() => Marshal.ReadInt64(null, 2)); } [Fact] + [SkipOnMono("Marshal.ReadInt64 will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void ReadInt64_NotReadable_ThrowsArgumentException() { AssemblyBuilder assemblyBuilder = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName("Assembly"), AssemblyBuilderAccess.RunAndCollect); @@ -169,12 +175,14 @@ public void WriteInt64_ZeroPointer_ThrowsException() } [Fact] + [SkipOnMono("Marshal.WriteInt64 will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void WriteInt64_NullObject_ThrowsAccessViolationException() { Assert.Throws(() => Marshal.WriteInt64(null, 2, 0)); } [Fact] + [SkipOnMono("Marshal.WriteInt64 will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void WriteInt64_NotReadable_ThrowsArgumentException() { AssemblyBuilder assemblyBuilder = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName("Assembly"), AssemblyBuilderAccess.RunAndCollect); diff --git a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ReadWrite/IntPtrTests.cs b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ReadWrite/IntPtrTests.cs index 0ede4ea14c6c3..6ecf6a028354b 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ReadWrite/IntPtrTests.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ReadWrite/IntPtrTests.cs @@ -51,6 +51,7 @@ public void WriteIntPtr_Pointer_Roundtrips(IntPtr[] values) } [Fact] + [SkipOnMono("Marshal.WriteIntPtr will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void WriteIntPtr_BlittableObject_Roundtrips() { int offset1 = Marshal.OffsetOf(nameof(BlittableStruct.value1)).ToInt32(); @@ -72,6 +73,7 @@ public void WriteIntPtr_BlittableObject_Roundtrips() } [Fact] + [SkipOnMono("Marshal.WriteIntPtr will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void WriteIntPtr_StructWithReferenceTypes_ReturnsExpected() { int pointerOffset = Marshal.OffsetOf(nameof(StructWithReferenceTypes.pointerValue)).ToInt32(); @@ -97,6 +99,7 @@ public void WriteIntPtr_StructWithReferenceTypes_ReturnsExpected() } [Fact] + [SkipOnMono("Marshal.ReadIntPtr will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void ReadIntPtr_BlittableObject_ReturnsExpected() { int offset1 = Marshal.OffsetOf(nameof(BlittableStruct.value1)).ToInt32(); @@ -113,6 +116,7 @@ public void ReadIntPtr_BlittableObject_ReturnsExpected() } [Fact] + [SkipOnMono("Marshal.ReadIntPtr will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void ReadIntPtr_StructWithReferenceTypes_ReturnsExpected() { int pointerOffset = Marshal.OffsetOf(nameof(StructWithReferenceTypes.pointerValue)).ToInt32(); @@ -139,12 +143,14 @@ public void ReadIntPtr_ZeroPointer_ThrowsException() } [Fact] + [SkipOnMono("Marshal.ReadIntPtr will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void ReadIntPtr_NullObject_ThrowsAccessViolationException() { Assert.Throws(() => Marshal.ReadIntPtr(null, 2)); } [Fact] + [SkipOnMono("Marshal.ReadIntPtr will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void ReadIntPtr_NotReadable_ThrowsArgumentException() { AssemblyBuilder assemblyBuilder = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName("Assembly"), AssemblyBuilderAccess.RunAndCollect); @@ -164,12 +170,14 @@ public void WriteIntPtr_ZeroPointer_ThrowsException() } [Fact] + [SkipOnMono("Marshal.WriteIntPtr will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void WriteIntPtr_NullObject_ThrowsAccessViolationException() { Assert.Throws(() => Marshal.WriteIntPtr(null, 2, (IntPtr)0)); } [Fact] + [SkipOnMono("Marshal.WriteIntPtr will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")] public void WriteIntPtr_NotReadable_ThrowsArgumentException() { AssemblyBuilder assemblyBuilder = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName("Assembly"), AssemblyBuilderAccess.RunAndCollect); diff --git a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/SizeOfTests.cs b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/SizeOfTests.cs index 576e6db7f8be0..a45708b61e4eb 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/SizeOfTests.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/SizeOfTests.cs @@ -82,6 +82,7 @@ public static IEnumerable SizeOf_InvalidType_TestData() } [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/15087", TestRuntimes.Mono)] [MemberData(nameof(SizeOf_InvalidType_TestData))] public void SizeOf_InvalidType_ThrowsArgumentException(Type type, string paramName) { diff --git a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/StructureToPtrTests.cs b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/StructureToPtrTests.cs index a664e60c53b54..c79d8087ecb77 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/StructureToPtrTests.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/StructureToPtrTests.cs @@ -11,6 +11,7 @@ namespace System.Runtime.InteropServices.Tests public class StructureToPtrTests { [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15102", TestRuntimes.Mono)] public void StructureToPtr_ByValBoolArray_Success() { var structure1 = new StructWithBoolArray() @@ -90,6 +91,7 @@ public void StructureToPtr_OverflowByValArrayInStruct_Success() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15103", TestRuntimes.Mono)] public void StructureToPtr_ByValDateArray_Success() { var structure = new StructWithDateArray() @@ -165,6 +167,7 @@ public void StructureToPtr_AutoLayout_ThrowsArgumentException() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15104", TestRuntimes.Mono)] public void StructureToPtr_InvalidLengthByValArrayInStruct_ThrowsArgumentException() { var structure = new StructWithByValArray diff --git a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ThrowExceptionForHRTests.cs b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ThrowExceptionForHRTests.cs index b82cb3608d3ea..deaacd98dc7cc 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ThrowExceptionForHRTests.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/Marshal/ThrowExceptionForHRTests.cs @@ -11,6 +11,7 @@ namespace System.Runtime.InteropServices.Tests public class ThrowExceptionForHRTests { [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/15093", TestRuntimes.Mono)] [InlineData(unchecked((int)0x80020006))] [InlineData(unchecked((int)0x80020101))] public void ThrowExceptionForHR_NoErrorInfo_ReturnsValidException(int errorCode) @@ -54,6 +55,7 @@ public static IEnumerable ThrowExceptionForHR_ErrorInfo_TestData() } [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/15093", TestRuntimes.Mono)] [MemberData(nameof(ThrowExceptionForHR_ErrorInfo_TestData))] public void ThrowExceptionForHR_ErrorInfo_ReturnsValidException(int errorCode, IntPtr errorInfo) { diff --git a/src/libraries/System.Runtime.Loader/tests/AssemblyLoadContextTest.cs b/src/libraries/System.Runtime.Loader/tests/AssemblyLoadContextTest.cs index 11626ff39d9aa..3cbede68a688d 100644 --- a/src/libraries/System.Runtime.Loader/tests/AssemblyLoadContextTest.cs +++ b/src/libraries/System.Runtime.Loader/tests/AssemblyLoadContextTest.cs @@ -70,6 +70,7 @@ public static void LoadFromNativeImagePath_PartiallyQualifiedPath_ThrowsArgument } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/32436", TestRuntimes.Mono)] public static void LoadAssemblyByPath_ValidUserAssembly() { var asmName = new AssemblyName(TestAssembly); @@ -83,6 +84,7 @@ public static void LoadAssemblyByPath_ValidUserAssembly() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/32437", TestRuntimes.Mono)] public static void LoadAssemblyByStream_ValidUserAssembly() { var asmName = new AssemblyName(TestAssembly); @@ -96,6 +98,7 @@ public static void LoadAssemblyByStream_ValidUserAssembly() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/32435", TestRuntimes.Mono)] public static void LoadFromAssemblyName_AssemblyNotFound() { var asmName = new AssemblyName("Non.Existing.Assembly.dll"); @@ -106,6 +109,7 @@ public static void LoadFromAssemblyName_AssemblyNotFound() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/32439", TestRuntimes.Mono)] public static void LoadFromAssemblyName_ValidTrustedPlatformAssembly() { var asmName = typeof(ISet<>).Assembly.GetName(); @@ -122,6 +126,7 @@ public static void LoadFromAssemblyName_ValidTrustedPlatformAssembly() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/32434", TestRuntimes.Mono)] public static void GetLoadContextTest_ValidUserAssembly() { var asmName = new AssemblyName(TestAssembly); @@ -184,6 +189,7 @@ public static void PublicConstructor_Default() } [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/15142", TestRuntimes.Mono)] [InlineData("AssemblyLoadContextCollectible", true)] [InlineData("AssemblyLoadContextNonCollectible", false)] public static void PublicConstructor_Theory(string name, bool isCollectible) diff --git a/src/libraries/System.Runtime.Loader/tests/CollectibleAssemblyLoadContextTest.cs b/src/libraries/System.Runtime.Loader/tests/CollectibleAssemblyLoadContextTest.cs index 16b0c64f184b9..5c71c3804173c 100644 --- a/src/libraries/System.Runtime.Loader/tests/CollectibleAssemblyLoadContextTest.cs +++ b/src/libraries/System.Runtime.Loader/tests/CollectibleAssemblyLoadContextTest.cs @@ -29,6 +29,7 @@ static void CreateAndLoadContext(CollectibleChecker checker) } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15142", TestRuntimes.Mono)] public static void Unload_CollectibleWithNoAssemblyLoaded() { // Use a collectible ALC + Unload @@ -40,6 +41,7 @@ public static void Unload_CollectibleWithNoAssemblyLoaded() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15142", TestRuntimes.Mono)] public static void Finalizer_CollectibleWithNoAssemblyLoaded() { // Use a collectible ALC, let the finalizer call Unload @@ -109,6 +111,7 @@ class CollectibleWithOneAssemblyLoadedTest : TestBase } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15142", TestRuntimes.Mono)] public static void Unload_CollectibleWithOneAssemblyLoaded() { // Use a collectible ALC + Load an assembly by path + Unload @@ -135,6 +138,7 @@ public void Execute() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15142", TestRuntimes.Mono)] public static void Unload_CollectibleWithOneAssemblyLoadedWithStatic() { // Use a collectible ALC + Load an assembly by path + New Instance + Static reference + Unload @@ -166,6 +170,7 @@ public void CheckInstanceUnloaded() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15142", TestRuntimes.Mono)] public static void Unload_CollectibleWithOneAssemblyLoadedWithWeakReferenceToType() { // Use a collectible ALC + Load an assembly by path + WeakReference on the Type + Unload @@ -199,6 +204,7 @@ public void CheckInstanceUnloaded() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15142", TestRuntimes.Mono)] public static void Unload_CollectibleWithOneAssemblyLoadedWithWeakReferenceToInstance() { // Use a collectible ALC + Load an assembly by path + WeakReference on an instance of a Type + Unload @@ -250,6 +256,7 @@ public void CheckTypeUnloaded() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15142", TestRuntimes.Mono)] public static void Unload_CollectibleWithOneAssemblyLoadedWithStrongReferenceToType() { // Use a collectible ALC + Load an assembly by path + Strong reference on the Type + Unload @@ -310,6 +317,7 @@ public void CheckInstanceUnloaded() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15142", TestRuntimes.Mono)] public static void Unload_CollectibleWithOneAssemblyLoadedWithStrongReferenceToInstance() { // Use a collectible ALC + Load an assembly by path + Strong reference on an instance of a Type + Unload @@ -343,6 +351,7 @@ public void Execute() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15142", TestRuntimes.Mono)] public static void Unload_CollectibleWithTwoAssemblies() { // Use a collectible ALC + Load two assemblies (path + stream) + Unload @@ -403,6 +412,7 @@ public void CheckContextUnloaded2() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15142", TestRuntimes.Mono)] public static void Unload_TwoCollectibleWithOneAssemblyAndOneInstanceReferencingAnother() { // We create 2 collectible ALC, load one assembly in each, create one instance in each, reference one instance from ALC1 to ALC2 @@ -429,6 +439,7 @@ public static void Unload_TwoCollectibleWithOneAssemblyAndOneInstanceReferencing } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15142", TestRuntimes.Mono)] public static void Unsupported_FixedAddressValueType() { var asmName = new AssemblyName(TestAssemblyNotSupported); diff --git a/src/libraries/System.Runtime.Loader/tests/ContextualReflection.cs b/src/libraries/System.Runtime.Loader/tests/ContextualReflection.cs index 160df3d762c1e..8f7f1fd03e5c2 100644 --- a/src/libraries/System.Runtime.Loader/tests/ContextualReflection.cs +++ b/src/libraries/System.Runtime.Loader/tests/ContextualReflection.cs @@ -144,6 +144,7 @@ public void FixtureSetupAssertions() } } + [ActiveIssue("https://github.com/mono/mono/issues/15142", TestRuntimes.Mono)] public class ContextualReflectionTest : IClassFixture { IContextualReflectionTestFixture _fixture; diff --git a/src/libraries/System.Runtime.Loader/tests/DefaultContext/DefaultLoadContextTest.cs b/src/libraries/System.Runtime.Loader/tests/DefaultContext/DefaultLoadContextTest.cs index 2c0f997dc70f4..32c1c1524993c 100644 --- a/src/libraries/System.Runtime.Loader/tests/DefaultContext/DefaultLoadContextTest.cs +++ b/src/libraries/System.Runtime.Loader/tests/DefaultContext/DefaultLoadContextTest.cs @@ -84,6 +84,7 @@ private Assembly ResolveNullAssembly(AssemblyLoadContext sender, AssemblyName as } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/32433", TestRuntimes.Mono)] public void LoadInDefaultContext() { // This will attempt to load an assembly, by path, in the Default Load context via the Resolving event @@ -176,6 +177,7 @@ public void LoadInDefaultContext() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/32432", TestRuntimes.Mono)] public static void LoadNonExistentInDefaultContext() { // Now, try to load an assembly that does not exist diff --git a/src/libraries/System.Runtime.Loader/tests/RefEmitLoadContext/RefEmitLoadContextTest.cs b/src/libraries/System.Runtime.Loader/tests/RefEmitLoadContext/RefEmitLoadContextTest.cs index 1034f6dddc240..bba0ca7f2661e 100644 --- a/src/libraries/System.Runtime.Loader/tests/RefEmitLoadContext/RefEmitLoadContextTest.cs +++ b/src/libraries/System.Runtime.Loader/tests/RefEmitLoadContext/RefEmitLoadContextTest.cs @@ -69,6 +69,7 @@ private static void DeleteDirectory() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/31804", TestRuntimes.Mono)] public static void LoadRefEmitAssembly() { Init(); diff --git a/src/libraries/System.Runtime.Serialization.Formatters/tests/BinaryFormatterTests.cs b/src/libraries/System.Runtime.Serialization.Formatters/tests/BinaryFormatterTests.cs index 35e73a2392850..e93f4eac15ed2 100644 --- a/src/libraries/System.Runtime.Serialization.Formatters/tests/BinaryFormatterTests.cs +++ b/src/libraries/System.Runtime.Serialization.Formatters/tests/BinaryFormatterTests.cs @@ -62,6 +62,7 @@ public void ValidateBasicObjectsRoundtrip(object obj, FormatterAssemblyStyle ass [Theory] [SkipOnCoreClr("Takes too long on Checked", RuntimeConfiguration.Checked)] + [ActiveIssue("https://github.com/mono/mono/issues/15115", TestRuntimes.Mono)] [MemberData(nameof(SerializableObjects_MemberData))] public void ValidateAgainstBlobs(object obj, TypeSerializableValue[] blobs) => ValidateAndRoundtrip(obj, blobs, false); diff --git a/src/libraries/System.Runtime.Serialization.Formatters/tests/FormatterServicesTests.cs b/src/libraries/System.Runtime.Serialization.Formatters/tests/FormatterServicesTests.cs index 16eb1e101ac5d..5501b23aec15e 100644 --- a/src/libraries/System.Runtime.Serialization.Formatters/tests/FormatterServicesTests.cs +++ b/src/libraries/System.Runtime.Serialization.Formatters/tests/FormatterServicesTests.cs @@ -55,6 +55,7 @@ public static IEnumerable GetUninitializedObject_NotSupportedType_Test } [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/15113", TestRuntimes.Mono)] [MemberData(nameof(GetUninitializedObject_NotSupportedType_TestData))] public void GetUninitializedObject_NotSupportedType_ThrowsArgumentException(Type type) { @@ -84,6 +85,7 @@ public static IEnumerable GetUninitializedObject_OpenGenericClass_Test } [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/15111", TestRuntimes.Mono)] [MemberData(nameof(GetUninitializedObject_OpenGenericClass_TestData))] public void GetUninitializedObject_OpenGenericClass_ThrowsMemberAccessException(Type type) { @@ -235,6 +237,7 @@ private class ObjectWithStaticField } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15114", TestRuntimes.Mono)] public void GetUninitializedObject_StaticConstructorThrows_ThrowsTypeInitializationException() { TypeInitializationException ex = Assert.Throws(() => FormatterServices.GetUninitializedObject(typeof(StaticConstructorThrows))); diff --git a/src/libraries/System.Runtime.Serialization.Formatters/tests/SerializationGuardTests.cs b/src/libraries/System.Runtime.Serialization.Formatters/tests/SerializationGuardTests.cs index 66acfc3797f8c..d29b1b9600b02 100644 --- a/src/libraries/System.Runtime.Serialization.Formatters/tests/SerializationGuardTests.cs +++ b/src/libraries/System.Runtime.Serialization.Formatters/tests/SerializationGuardTests.cs @@ -34,6 +34,7 @@ public static void BlockFileWrites() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15112", TestRuntimes.Mono)] public static void BlockReflectionDodging() { // Ensure that the deserialization tracker cannot be called by reflection. diff --git a/src/libraries/System.Runtime/tests/System/DelegateTests.cs b/src/libraries/System.Runtime/tests/System/DelegateTests.cs index 1257581b24bc9..9d3f635bee23d 100644 --- a/src/libraries/System.Runtime/tests/System/DelegateTests.cs +++ b/src/libraries/System.Runtime/tests/System/DelegateTests.cs @@ -383,6 +383,7 @@ public static void DynamicInvoke_OptionalParameter_WithExplicitValue() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15148", TestRuntimes.Mono)] public static void DynamicInvoke_OptionalParameter_WithMissingValue() { Assert.Equal( @@ -391,6 +392,7 @@ public static void DynamicInvoke_OptionalParameter_WithMissingValue() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15148", TestRuntimes.Mono)] public static void DynamicInvoke_OptionalParameterUnassingableFromMissing_WithMissingValue() { AssertExtensions.Throws(null, () => (new OptionalStringParameter(StringMethod)).DynamicInvoke(new object[] { Type.Missing })); @@ -405,6 +407,7 @@ public static void DynamicInvoke_ParameterSpecification_ArrayOfStrings() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15148", TestRuntimes.Mono)] public static void DynamicInvoke_ParameterSpecification_ArrayOfMissing() { Assert.Same( diff --git a/src/libraries/System.Runtime/tests/System/ExceptionTests.cs b/src/libraries/System.Runtime/tests/System/ExceptionTests.cs index 64a4d43906ed6..6d663486205a3 100644 --- a/src/libraries/System.Runtime/tests/System/ExceptionTests.cs +++ b/src/libraries/System.Runtime/tests/System/ExceptionTests.cs @@ -81,6 +81,7 @@ public static void Exception_TargetSite_Jit() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15140", TestRuntimes.Mono)] public static void ThrowStatementDoesNotResetExceptionStackLineSameMethod() { (string, string, int) rethrownExceptionStackFrame = (null, null, 0); @@ -108,7 +109,9 @@ private static (string, string, int) ThrowAndRethrowSameMethod(out (string, stri } } - [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue(https://github.com/dotnet/runtime/issues/1871)] can't use ActiveIssue for archs + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArm64Process))] + // [ActiveIssue(https://github.com/dotnet/runtime/issues/1871)] can't use ActiveIssue for archs + [ActiveIssue("https://github.com/mono/mono/issues/15141", TestRuntimes.Mono)] public static void ThrowStatementDoesNotResetExceptionStackLineOtherMethod() { (string, string, int) rethrownExceptionStackFrame = (null, null, 0); diff --git a/src/libraries/System.Runtime/tests/System/ExitCodeTests.Unix.cs b/src/libraries/System.Runtime/tests/System/ExitCodeTests.Unix.cs index 3bf81ef230b0f..b86cf0a018b69 100644 --- a/src/libraries/System.Runtime/tests/System/ExitCodeTests.Unix.cs +++ b/src/libraries/System.Runtime/tests/System/ExitCodeTests.Unix.cs @@ -17,6 +17,7 @@ public class ExitCodeTests private static extern int kill(int pid, int sig); [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/31656", TestRuntimes.Mono)] [InlineData(null)] [InlineData(0)] [InlineData(42)] diff --git a/src/libraries/System.Runtime/tests/System/GCTests.cs b/src/libraries/System.Runtime/tests/System/GCTests.cs index 865250d579fd0..568e2aec9ad50 100644 --- a/src/libraries/System.Runtime/tests/System/GCTests.cs +++ b/src/libraries/System.Runtime/tests/System/GCTests.cs @@ -399,6 +399,7 @@ public static void LargeObjectHeapCompactionModeRoundTrips(GCLargeObjectHeapComp } [Theory] + [ActiveIssue("https://github.com/dotnet/runtime/issues/31657", TestRuntimes.Mono)] [InlineData(GCLatencyMode.Batch)] [InlineData(GCLatencyMode.Interactive)] public static void LatencyRoundtrips(GCLatencyMode value) @@ -781,6 +782,7 @@ public static void GetAllocatedBytesForCurrentThread(int size) } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotArmProcess))] // [ActiveIssue("https://github.com/dotnet/corefx/issues/37378")] + [ActiveIssue("https://github.com/mono/mono/issues/15236", TestRuntimes.Mono)] public static void GetGCMemoryInfo() { RemoteExecutor.Invoke(() => diff --git a/src/libraries/System.Runtime/tests/System/Reflection/IsCollectibleTests.cs b/src/libraries/System.Runtime/tests/System/Reflection/IsCollectibleTests.cs index 59c6299c49f16..c808e075b820a 100644 --- a/src/libraries/System.Runtime/tests/System/Reflection/IsCollectibleTests.cs +++ b/src/libraries/System.Runtime/tests/System/Reflection/IsCollectibleTests.cs @@ -18,6 +18,7 @@ public TestAssemblyLoadContext() : base(true) {} protected override Assembly Load(AssemblyName assemblyName) => null; } + [ActiveIssue("https://github.com/mono/mono/issues/15142", TestRuntimes.Mono)] public class IsCollectibleTests { public static string asmNameString = "TestCollectibleAssembly"; diff --git a/src/libraries/System.Runtime/tests/System/Reflection/PointerTests.cs b/src/libraries/System.Runtime/tests/System/Reflection/PointerTests.cs index 731a9ef48f91e..cd80bbaeabf69 100644 --- a/src/libraries/System.Runtime/tests/System/Reflection/PointerTests.cs +++ b/src/libraries/System.Runtime/tests/System/Reflection/PointerTests.cs @@ -171,6 +171,7 @@ public void PointerPropertySetValue_InvalidType(int value) } [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/15152", TestRuntimes.Mono)] [MemberData(nameof(Pointers))] public void PointerPropertyGetValue(int value) { diff --git a/src/libraries/System.Runtime/tests/System/Type/TypePropertyTests.cs b/src/libraries/System.Runtime/tests/System/Type/TypePropertyTests.cs index 65d19f0f202ae..fc683bd54718e 100644 --- a/src/libraries/System.Runtime/tests/System/Type/TypePropertyTests.cs +++ b/src/libraries/System.Runtime/tests/System/Type/TypePropertyTests.cs @@ -531,6 +531,7 @@ public class EnumTypeTests : ClassTypeTestBase public override Type BaseType => typeof(ValueType); } + [ActiveIssue("https://github.com/dotnet/runtime/issues/31713", TestRuntimes.Mono)] public class VoidTests : StructTypeTestBase { public override Type CreateType() => typeof(void); diff --git a/src/libraries/System.Security.Cryptography.Encoding/tests/Oid.cs b/src/libraries/System.Security.Cryptography.Encoding/tests/Oid.cs index 3f908a29a481d..6e6b04f6549df 100644 --- a/src/libraries/System.Security.Cryptography.Encoding/tests/Oid.cs +++ b/src/libraries/System.Security.Cryptography.Encoding/tests/Oid.cs @@ -23,6 +23,7 @@ public static void EmptyOid() } [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/16686", TestRuntimes.Mono)] [MemberData(nameof(ValidOidFriendlyNamePairs))] public static void LookupOidByValue_Ctor(string oidValue, string friendlyName) { @@ -33,6 +34,7 @@ public static void LookupOidByValue_Ctor(string oidValue, string friendlyName) } [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/16686", TestRuntimes.Mono)] [MemberData(nameof(ValidOidFriendlyNamePairs))] public static void LookupOidByFriendlyName_Ctor(string oidValue, string friendlyName) { @@ -68,6 +70,7 @@ public static void Oid_StringString_BothNull() } [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/16686", TestRuntimes.Mono)] [MemberData(nameof(ValidOidFriendlyNamePairs))] public static void Oid_StringString_NullFriendlyName(string oidValue, string expectedFriendlyName) { @@ -223,6 +226,7 @@ public static void LookupOidByFriendlyName_Method_EncryptionAlgorithm(string oid } [Theory] + [ActiveIssue("https://github.com/mono/mono/issues/16686", TestRuntimes.Mono)] [MemberData(nameof(ValidOidFriendlyNamePairs))] public static void LookupOidByFriendlyName_Method_InverseCase(string oidValue, string friendlyName) { diff --git a/src/libraries/System.Threading.Overlapped/tests/OverlappedTests.cs b/src/libraries/System.Threading.Overlapped/tests/OverlappedTests.cs index ce5ed265ba076..ee50f7e5ad9de 100644 --- a/src/libraries/System.Threading.Overlapped/tests/OverlappedTests.cs +++ b/src/libraries/System.Threading.Overlapped/tests/OverlappedTests.cs @@ -62,6 +62,7 @@ public static void PropertyTest2() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15311", TestRuntimes.Mono)] public static void PropertyTest3() { IAsyncResult asyncResult = new Task(() => Console.WriteLine("this is a dummy task")); diff --git a/src/libraries/System.Threading.Overlapped/tests/ThreadPoolBoundHandle_PreAllocatedOverlappedTests.cs b/src/libraries/System.Threading.Overlapped/tests/ThreadPoolBoundHandle_PreAllocatedOverlappedTests.cs index 447185832edee..06166c3e8bf9f 100644 --- a/src/libraries/System.Threading.Overlapped/tests/ThreadPoolBoundHandle_PreAllocatedOverlappedTests.cs +++ b/src/libraries/System.Threading.Overlapped/tests/ThreadPoolBoundHandle_PreAllocatedOverlappedTests.cs @@ -10,6 +10,7 @@ public partial class ThreadPoolBoundHandleTests { [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15313", TestRuntimes.Mono)] public unsafe void PreAllocatedOverlapped_NullAsCallback_ThrowsArgumentNullException() { AssertExtensions.Throws("callback", () => @@ -41,6 +42,7 @@ public unsafe void PreAllocatedOverlapped_EmptyArrayAsPinData_DoesNotThrow() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15313", TestRuntimes.Mono)] public unsafe void PreAllocatedOverlapped_NonBlittableTypeAsPinData_Throws() { AssertExtensions.Throws(null, () => new PreAllocatedOverlapped((_, __, ___) => { }, new object(), new NonBlittableType() { s = "foo" })); @@ -68,6 +70,7 @@ public unsafe void PreAllocatedOverlapped_ObjectArrayAsPinData_DoesNotThrow() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15313", TestRuntimes.Mono)] public unsafe void PreAllocatedOverlapped_ObjectArrayWithNonBlittableTypeAsPinData_Throws() { object[] array = new object[] diff --git a/src/libraries/System.Threading.Tasks/tests/Task/ExecutionContextFlowTest.cs b/src/libraries/System.Threading.Tasks/tests/Task/ExecutionContextFlowTest.cs index e562d7440859b..b59747ade4f74 100644 --- a/src/libraries/System.Threading.Tasks/tests/Task/ExecutionContextFlowTest.cs +++ b/src/libraries/System.Threading.Tasks/tests/Task/ExecutionContextFlowTest.cs @@ -82,7 +82,7 @@ public static IEnumerable TaskCompletionSourceDoesntCaptureExecutionCo yield return new object[] { new Func>(() => new TaskCompletionSource(new object(), TaskCreationOptions.RunContinuationsAsynchronously)) }; } - [Theory] + [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsPreciseGcSupported))] [MemberData(nameof(TaskCompletionSourceDoesntCaptureExecutionContext_MemberData))] public static async Task TaskCompletionSourceDoesntCaptureExecutionContext(Func> tcsFactory) { diff --git a/src/libraries/System.Threading.Tasks/tests/Task/TaskContinueWithTests.cs b/src/libraries/System.Threading.Tasks/tests/Task/TaskContinueWithTests.cs index 6ac41c1800351..376da9688b73c 100644 --- a/src/libraries/System.Threading.Tasks/tests/Task/TaskContinueWithTests.cs +++ b/src/libraries/System.Threading.Tasks/tests/Task/TaskContinueWithTests.cs @@ -1212,6 +1212,7 @@ public static void RunLazyCancellationTests_Negative() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/2084", TestRuntimes.Mono)] public static void LongContinuationChain_ContinueWith_DoesNotStackOverflow() { const int DiveDepth = 12_000; diff --git a/src/libraries/System.Threading.ThreadPool/tests/ThreadPoolTests.cs b/src/libraries/System.Threading.ThreadPool/tests/ThreadPoolTests.cs index 4a116c5c6cd63..a72fe059893d0 100644 --- a/src/libraries/System.Threading.ThreadPool/tests/ThreadPoolTests.cs +++ b/src/libraries/System.Threading.ThreadPool/tests/ThreadPoolTests.cs @@ -89,6 +89,7 @@ public static void GetAvailableThreadsTest() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15164", TestRuntimes.Mono)] public static void SetMinMaxThreadsTest() { int minw, minc, maxw, maxc; @@ -149,6 +150,7 @@ public static void SetMinMaxThreadsTest() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/32020", TestRuntimes.Mono)] public static void SetMinMaxThreadsTest_ChangedInDotNetCore() { int minw, minc, maxw, maxc; diff --git a/src/libraries/System.Threading/tests/MutexTests.cs b/src/libraries/System.Threading/tests/MutexTests.cs index 40b37d16c985d..6b5132b0bd34b 100644 --- a/src/libraries/System.Threading/tests/MutexTests.cs +++ b/src/libraries/System.Threading/tests/MutexTests.cs @@ -38,6 +38,7 @@ public void Ctor_ConstructWaitRelease() } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15159", TestRuntimes.Mono)] [PlatformSpecific(TestPlatforms.AnyUnix)] public void Ctor_InvalidNames_Unix() { @@ -122,6 +123,7 @@ public void OpenExisting(string name) } [Fact] + [ActiveIssue("https://github.com/mono/mono/issues/15158", TestRuntimes.Mono)] public void OpenExisting_InvalidNames() { AssertExtensions.Throws("name", () => Mutex.OpenExisting(null)); diff --git a/src/libraries/System.Threading/tests/SemaphoreTests.cs b/src/libraries/System.Threading/tests/SemaphoreTests.cs index fd2c81f2a17aa..f8af0363b3dfe 100644 --- a/src/libraries/System.Threading/tests/SemaphoreTests.cs +++ b/src/libraries/System.Threading/tests/SemaphoreTests.cs @@ -39,6 +39,7 @@ public void Ctor_ValidName_Windows(string name) } [PlatformSpecific(TestPlatforms.AnyUnix)] // named semaphores aren't supported on Unix + [ActiveIssue("https://github.com/mono/mono/issues/15161", TestRuntimes.Mono)] [Fact] public void Ctor_NamesArentSupported_Unix() { @@ -189,6 +190,7 @@ public void NamedProducerConsumer() } [PlatformSpecific(TestPlatforms.AnyUnix)] // named semaphores aren't supported on Unix + [ActiveIssue("https://github.com/mono/mono/issues/15160", TestRuntimes.Mono)] [Fact] public void OpenExisting_NotSupported_Unix() { diff --git a/src/libraries/System.Utf8String.Experimental/tests/System/Char8Tests.cs b/src/libraries/System.Utf8String.Experimental/tests/System/Char8Tests.cs index 87da26b8e81fa..84acb981e21a2 100644 --- a/src/libraries/System.Utf8String.Experimental/tests/System/Char8Tests.cs +++ b/src/libraries/System.Utf8String.Experimental/tests/System/Char8Tests.cs @@ -7,6 +7,7 @@ namespace System.Tests { + [SkipOnMono("The features from System.Utf8String.Experimental namespace are experimental.")] public unsafe partial class Char8Tests { [Theory] diff --git a/src/libraries/System.Utf8String.Experimental/tests/System/MemoryTests.cs b/src/libraries/System.Utf8String.Experimental/tests/System/MemoryTests.cs index 34c2ca98f5358..8e7086a66f1b1 100644 --- a/src/libraries/System.Utf8String.Experimental/tests/System/MemoryTests.cs +++ b/src/libraries/System.Utf8String.Experimental/tests/System/MemoryTests.cs @@ -11,6 +11,7 @@ namespace System.Tests { + [SkipOnMono("The features from System.Utf8String.Experimental namespace are experimental.")] public partial class MemoryTests { [Fact] diff --git a/src/libraries/System.Utf8String.Experimental/tests/System/Net/Http/Utf8StringContentTests.cs b/src/libraries/System.Utf8String.Experimental/tests/System/Net/Http/Utf8StringContentTests.cs index 87c31c6dce394..0173b9bafc45e 100644 --- a/src/libraries/System.Utf8String.Experimental/tests/System/Net/Http/Utf8StringContentTests.cs +++ b/src/libraries/System.Utf8String.Experimental/tests/System/Net/Http/Utf8StringContentTests.cs @@ -11,6 +11,7 @@ namespace System.Net.Http.Tests { + [SkipOnMono("The features from System.Utf8String.Experimental namespace are experimental.")] public partial class Utf8StringContentTests { [Fact] diff --git a/src/libraries/System.Utf8String.Experimental/tests/System/ReflectionTests.cs b/src/libraries/System.Utf8String.Experimental/tests/System/ReflectionTests.cs index 4cbd4cf192d26..e45e8ddca07cc 100644 --- a/src/libraries/System.Utf8String.Experimental/tests/System/ReflectionTests.cs +++ b/src/libraries/System.Utf8String.Experimental/tests/System/ReflectionTests.cs @@ -9,6 +9,7 @@ namespace System.Tests { + [SkipOnMono("The features from System.Utf8String.Experimental namespace are experimental.")] public partial class ReflectionTests { [Fact] diff --git a/src/libraries/System.Utf8String.Experimental/tests/System/Utf8ExtensionsTests.cs b/src/libraries/System.Utf8String.Experimental/tests/System/Utf8ExtensionsTests.cs index 13d5f4c091b99..5b15679b006be 100644 --- a/src/libraries/System.Utf8String.Experimental/tests/System/Utf8ExtensionsTests.cs +++ b/src/libraries/System.Utf8String.Experimental/tests/System/Utf8ExtensionsTests.cs @@ -11,6 +11,7 @@ namespace System.Tests { + [SkipOnMono("The features from System.Utf8String.Experimental namespace are experimental.")] public partial class Utf8ExtensionsTests { [Fact] diff --git a/src/libraries/System.Utf8String.Experimental/tests/System/Utf8SpanTests.cs b/src/libraries/System.Utf8String.Experimental/tests/System/Utf8SpanTests.cs index 91d19de6dfe4d..93148cb652951 100644 --- a/src/libraries/System.Utf8String.Experimental/tests/System/Utf8SpanTests.cs +++ b/src/libraries/System.Utf8String.Experimental/tests/System/Utf8SpanTests.cs @@ -16,6 +16,7 @@ namespace System.Text.Tests { + [SkipOnMono("The features from System.Utf8String.Experimental namespace are experimental.")] public unsafe partial class Utf8SpanTests { [Fact] diff --git a/src/libraries/System.Utf8String.Experimental/tests/System/Utf8StringTests.cs b/src/libraries/System.Utf8String.Experimental/tests/System/Utf8StringTests.cs index 17da58ac16c13..12b8ad587d488 100644 --- a/src/libraries/System.Utf8String.Experimental/tests/System/Utf8StringTests.cs +++ b/src/libraries/System.Utf8String.Experimental/tests/System/Utf8StringTests.cs @@ -10,6 +10,7 @@ namespace System.Tests { + [SkipOnMono("The features from System.Utf8String.Experimental namespace are experimental.")] public unsafe partial class Utf8StringTests { [Fact] diff --git a/src/mono/netcore/CoreFX.issues.rsp b/src/mono/netcore/CoreFX.issues.rsp deleted file mode 100644 index 7d4cf244d47a6..0000000000000 --- a/src/mono/netcore/CoreFX.issues.rsp +++ /dev/null @@ -1,932 +0,0 @@ --notrait category=OuterLoop --notrait category=RequiresElevation --notrait category=nonnetcoreapptests --notrait category=nonmonotests --notrait category=failing --notrait category=IgnoreForCI - -#################################################################### -## Microsoft.VisualBasic.Core.Tests -#################################################################### - -# https://github.com/mono/mono/issues/14854 --nomethod Microsoft.VisualBasic.Tests.ErrObjectTests.Clear - -# Windows-only tests, incorrect platform guards (https://github.com/dotnet/corefx/pull/40365) --nomethod Microsoft.VisualBasic.Tests.InteractionTests.SaveSetting --nomethod Microsoft.VisualBasic.Tests.InteractionTests.DeleteSetting --nomethod Microsoft.VisualBasic.Tests.InteractionTests.GetAllSettings --nomethod Microsoft.VisualBasic.Tests.InteractionTests.GetSetting - -#################################################################### -## System.Collections.Specialized.Tests -#################################################################### - -# TODO: Wrong exception -# https://github.com/mono/mono/issues/14858 --nomethod System.Collections.Specialized.Tests.NameValueCollectionCtorTests.Ctor_NegativeCapacity_ThrowsArgumentOutOfRangeException - -#################################################################### -## System.Collections.Concurrent.Tests -#################################################################### - -# fails only with release mono --nomethod System.Collections.Concurrent.Tests.ConcurrentQueueTests.ReferenceTypes_NulledAfterDequeue - -#################################################################### -## System.Diagnostics.Tracing.Tests -#################################################################### - -# System.SR needs implemented. -# https://github.com/mono/mono/issues/14907 --nomethod BasicEventSourceTests.TestsManifestNegative.Test_GenerateManifest_InvalidEventSources - -#################################################################### -## System.Drawing.Common.Tests -#################################################################### - -# System.ArgumentException Arg_ObjObjEx --nomethod System.Drawing.Imaging.Tests.ImageAttributesTests.SetColorMatrix_InvalidFlags_ThrowsArgumentException - -#################################################################### -## System.Dynamic.Runtime.Tests -#################################################################### - -# ambigous methods -# https://github.com/mono/mono/issues/14906 --nomethod ManagedTests.DynamicCSharp.Conformance.dynamic.overloadResolution.Methods.Oneclass2methods.twoprms004.twoprms004.Test.DynamicCSharpRunTest - -#################################################################### -## System.IO.Tests -#################################################################### - -# flaky test (The process cannot access the file ...) --nomethod System.IO.Tests.*.CopyFileWithData_MemberData - -#################################################################### -## System.Linq.Expressions.Tests -#################################################################### - -# OOM Exception gets thrown for the 68 (currently) tests that fail. -# https://github.com/mono/mono/issues/14912 --nomethod System.Linq.Expressions.Tests.ArrayBoundsTests.NewArrayBounds* - -# Exceptions are different. -# https://github.com/mono/mono/issues/14918 --nomethod System.Linq.Expressions.Tests.BindTests.ConstantField - -# System.Reflection.Emit type load / init exception https://github.com/mono/mono/issues/14919 --nomethod System.Linq.Expressions.Tests.Return.TailCallThenReturn --nomethod System.Linq.Expressions.Tests.UnaryArithmeticNegateCheckedNullableTests.VerifyIL_NullableShortNegateChecked --noclass System.Linq.Expressions.Tests.StackSpillerTests --noclass System.Linq.Expressions.Tests.LambdaTests --nomethod System.Linq.Expressions.Tests.BinaryCoalesceTests.VerifyIL_NullableIntCoalesceToNullableInt --nomethod System.Linq.Expressions.Tests.UnaryArithmeticNegateCheckedTests.VerifyIL_ShortNegateChecked --nomethod System.Linq.Expressions.Tests.BlockTests.InsignificantBlock --nomethod System.Linq.Expressions.Tests.CompilerTests.VerifyIL_* - -# InvalidOperationException - Sequence contains no matching element -# https://github.com/mono/mono/issues/14920 --nomethod System.Linq.Expressions.Tests.ArrayAccessTests.ArrayAccess_MultiDimensionalOf1 --nomethod System.Linq.Expressions.Tests.ArrayAccessTests.ArrayIndex_MultiDimensionalOf1 --nomethod System.Linq.Expressions.Tests.MemberAccessTests.Property_NoGetOrSetAccessors_ThrowsArgumentException --nomethod System.Linq.Expressions.Tests.IndexExpressionTests.NoAccessorIndexedProperty - -# IndexOutOfRangeException -# https://github.com/mono/mono/issues/14921 --nomethod System.Linq.Expressions.Tests.ArrayAccessTests.NonZeroBasedOneDimensionalArrayAccess - -# System.InvalidOperationException : Operation is not valid due to the current state of the object. -# https://github.com/mono/mono/issues/14924 --nomethod System.Linq.Expressions.Tests.ExceptionHandlingExpressions.ExceptionThrownInFilter - -# legit test failure... Expected 4 / actual 0 -# https://github.com/mono/mono/issues/14925 --nomethod System.Linq.Expressions.Tests.ExceptionHandlingExpressions.ExpressionsUnwrapeExternallyThrownRuntimeWrappedException - -# Expected exception but none was thrown -# https://github.com/mono/mono/issues/14927 --nomethod System.Linq.Expressions.Tests.IndexExpressionTests.IndexedPropertySetterValueTypeNotMatchPropertyType --nomethod System.Linq.Expressions.Tests.IndexExpressionTests.IndexedPropertyGetReturnsWrongType - -# Expected ArgumentException got IndexOutOfRangeException https://github.com/mono/mono/issues/14930 --nomethod System.Linq.Expressions.Tests.ArrayIndexTests.NonZeroBasedOneDimensionalArrayIndex --nomethod System.Linq.Expressions.Tests.ArrayIndexTests.NonZeroBasedOneDimensionalArrayIndexMethod - -# OOM Exception. Weird -# https://github.com/mono/mono/issues/14933 --nomethod System.Linq.Expressions.Tests.ArrayBoundsTests.SingleNegativeBoundErrorMessage - -# Arithmetic operation resulted in an overflow. -# https://github.com/mono/mono/issues/14934 --nomethod System.Linq.Expressions.Tests.ArrayBoundsTests.MultipleNegativeBoundErrorMessage - -#################################################################### -## System.Linq.Parallel.Tests -#################################################################### - -# fails w/ an ArgumentException: Arg_ObjObjEx https://github.com/mono/mono/issues/14956 --nomethod System.Linq.Parallel.Tests.PlinqModesTests.WithExecutionMode_Multiple - -#################################################################### -## System.Memory.Tests -#################################################################### - -# Reflection TargetException: Non-static method requires a target. -# https://github.com/mono/mono/issues/14962 --nomethod System.SpanTests.SpanTests.ReadOnlyMemory_PropertyReturningReadOnlySpan - -# Should throw NotSupportedException, but we do not. -# https://github.com/mono/mono/issues/14993 --nomethod System.SpanTests.SpanTests.ReadOnlySpan_Constructor --nomethod System.SpanTests.SpanTests.Span_Constructor - -# Should throw NotSupportedException - Non static method requires a target -# https://github.com/mono/mono/issues/14998 --nomethod System.SpanTests.SpanTests.Span_InstanceMethod --nomethod System.SpanTests.SpanTests.Memory_PropertyReturningSpan --nomethod System.SpanTests.SpanTests.ReadOnlySpan_InstanceMethod - -# Should throw OutOfMemory Exception, but does not throw -# https://github.com/mono/mono/issues/15002 --nomethod System.Buffers.Tests.ArrayBufferWriterTests_String.Invalid_Ctor --nomethod System.Buffers.Tests.ArrayBufferWriterTests_Char.Invalid_Ctor --nomethod System.Buffers.Tests.ArrayBufferWriterTests_Byte.Invalid_Ctor - -#################################################################### -## System.Net.Http.Functional.Tests -#################################################################### - -# TODO: Crashes runtime inside Interop.Http.MultiPerform (marshalling issue?) -# https://github.com/mono/mono/issues/15005 --nomethod *PlatformHandler* - -# Works, but may trigger UI! -# NOTE: KEEPING THIS HERE BUT COMMENTED OUT - in the event the UI is shown (wasn't for me) -#-nomethod System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_DangerousAcceptAllCertificatesValidator_Test.SetDelegate_ConnectionSucceeds - -# When test is run, xunit claims it's not a part of the test suite -#-nomethod System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_ClientCertificates_Test.AutomaticOrManual_DoesntFailRegardlessOfWhetherClientCertsAreAvailable - -#################################################################### -## System.Net.Sockets.Tests -#################################################################### - -# flaky test --nomethod System.Net.Sockets.Tests.SocketOptionNameTest.MulticastInterface_Set_AnyInterface_Succeeds - -#################################################################### -## System.Reflection.Emit.ILGeneration.Tests -#################################################################### - -# System.Reflection implementation to do. --noclass System.Reflection.Emit.Tests.CustomAttributeBuilderTests --nomethod System.Reflection.Emit.Tests.SignatureHelperAddArgument.* --nomethod System.Reflection.Emit.Tests.SignatureHelperGetPropertySigHelper.* --nomethod System.Reflection.Emit.Tests.ILGeneratorEmit3.Emit_OpCodes_LocalBuilder_LocalFromDifferentMethod_ThrowsArgumentException --nomethod System.Reflection.Emit.Tests.ILGeneratorDeclareLocal.DeclareLocal_TypeCreated_ThrowsInvalidOperationException --nomethod System.Reflection.Emit.Tests.ILGeneratorDeclareLocal.DeclareLocal_GlobalFunctionsCreated_ThrowsInvalidOperationException --nomethod System.Reflection.Emit.Tests.SignatureHelperGetMethodSigHelper.GetMethodSigHelper_Module_CallingConventions_Type_Length_ReturnsThree --nomethod System.Reflection.Emit.Tests.SignatureHelperGetMethodSigHelper.GetMethodSigHelper_Module_Type_TypeArray --nomethod System.Reflection.Emit.Tests.SignatureHelperGetMethodSigHelper.GetMethodSigHelper_CallingConventions_Type_Length_ReturnsThree --nomethod System.Reflection.Emit.Tests.SignatureHelperGetMethodSigHelper.GetMethodSigHelper_Module_Type_TypeArray_NullObjectInParameterType_ThrowsArgumentNullException --nomethod System.Reflection.Emit.Tests.ILGeneratorEmit2.Emit_OpCodes_LocalBuilder_TooManyLocals_ThrowsInvalidOperationException --nomethod System.Reflection.Emit.Tests.ILGeneratorEmit2.Emit_OpCodes_LocalBuilder_LocalFromDifferentMethod_ThrowsArgumentException --nomethod System.Reflection.Emit.Tests.SetCustomAttributeTests.SetCustomAttribute_NullArgument_ThrowsArgumentNullException --nomethod System.Reflection.Emit.Tests.ILGeneratorEmit4.TestEmitCalliNonBlittable --nomethod System.Reflection.Emit.Tests.SignatureHelperAddArguments.AddArgument_NullObjectInRequiredCustomModifiers_ThrowsArgumentNullException --nomethod System.Reflection.Emit.Tests.SignatureHelperAddArguments.AddArgument_NullObjectInOptionalCustomModifiers_ThrowsArgumentNullException --nomethod System.Reflection.Emit.Tests.SignatureHelperAddArguments.AddArgument_DifferentCountsForCustomModifiers_ThrowsArgumentException --nomethod System.Reflection.Emit.Tests.SignatureHelperAddArguments.AddArguments_SignatureFinished_ThrowsArgumentException --nomethod System.Reflection.Emit.Tests.SignatureHelperAddArguments.AddArguments - -#################################################################### -## System.Reflection.Emit.Tests -#################################################################### - -# Mono behaves like coreclr but the test doesn't detect it --nomethod System.Reflection.Emit.Tests.AssemblyTests.DefineDynamicModule - --nomethod System.Reflection.Emit.Tests.MethodBuilderEquals.Equals --nomethod System.Reflection.Emit.Tests.ConstructorBuilderToString.ToString_NullRequiredOptionalCustomModifiers --nomethod System.Reflection.Emit.Tests.ConstructorBuilderToString.ToString_NoRequiredOptionalCustomModifiers --nomethod System.Reflection.Emit.Tests.EnumBuilderMethodTests.DefineLiteral --nomethod System.Reflection.Emit.Tests.EnumBuilderMethodTests.DefineLiteral_InvalidLiteralValue_ThrowsArgumentException --nomethod System.Reflection.Emit.Tests.EnumBuilderMethodTests.SetCustomAttribute_ConstructorInfo_ByteArray --nomethod System.Reflection.Emit.Tests.EnumBuilderMethodTests.SetCustomAttribute_CustomAttributeBuilder --nomethod System.Reflection.Emit.Tests.EnumBuilderPropertyTests.Guid_TypeCreated --nomethod System.Reflection.Emit.Tests.FieldBuilderSetConstant.SetConstant_InvalidType_ThrowsArgumentException --nomethod System.Reflection.Emit.Tests.GenericTypeParameterBuilderSetInterfaceConstraints.SetInterfaceConstraints_OneCustomInterface --nomethod System.Reflection.Emit.Tests.GenericTypeParameterBuilderSetInterfaceConstraints.SetInterfaceConstraints_MultipleCustomInterfaces --nomethod System.Reflection.Emit.Tests.MethodBuilderDefineGenericParameters.DefineGenericParameters_SingleTypeParameter_SetImplementationFlagsCalled_ThrowsInvalidOperationException --nomethod System.Reflection.Emit.Tests.MethodBuilderDefineGenericParameters.DefineGenericParameters_TwoTypeParameters_SetImplementationFlagsCalled_ThrowsInvalidOperationException --nomethod System.Reflection.Emit.Tests.MethodBuilderDefineGenericParameters.DefineGenericParameters_SingleTypeParameter_AlreadyDefined_ThrowsInvalidOperationException --nomethod System.Reflection.Emit.Tests.MethodBuilderDefineGenericParameters.DefineGenericParameters_TwoTypeParameters_AlreadyDefined_ThrowsInvalidOperationException --nomethod System.Reflection.Emit.Tests.MethodBuilderGetILGenerator.GetILGenerator_NoMethodBody_ThrowsInvalidOperationException --nomethod System.Reflection.Emit.Tests.MethodBuilderMakeGenericMethod.TestNotThrowsExceptionOnNull --nomethod System.Reflection.Emit.Tests.MethodBuilderMakeGenericMethod.TestNotThrowsExceptionOnEmptyArray1 --nomethod System.Reflection.Emit.Tests.MethodBuilderMakeGenericMethod.TestNotThrowsExceptionOnEmptyArray2 --nomethod System.Reflection.Emit.Tests.MethodBuilderReturnParameter.ReturnParameter_NoBody_ThrowsInvalidOperationException --nomethod System.Reflection.Emit.Tests.MethodBuilderSetParameters.SetParameters --nomethod System.Reflection.Emit.Tests.MethodBuilderSetParameters.SetParameters_NullParameter_ThrowsArgumentNullException --nomethod System.Reflection.Emit.Tests.MethodBuilderToString.ToString_AllFieldsSet --nomethod System.Reflection.Emit.Tests.MethodBuilderToString.ToString_NameAndAttributeSet --nomethod System.Reflection.Emit.Tests.MethodBuilderToString.ToString_NameAttributeAndSignatureSetSet --nomethod System.Reflection.Emit.Tests.MethodBuilderToString.ToString_NonGenericMethod --nomethod System.Reflection.Emit.Tests.MethodBuilderToString.ToString_GenericMethod --nomethod System.Reflection.Emit.Tests.ModuleBuilderDefineEnum.DefineEnum --nomethod System.Reflection.Emit.Tests.ModuleBuilderDefineEnum.DefineEnum_DynamicUnderlyingType_Works --nomethod System.Reflection.Emit.Tests.ModuleBuilderDefineEnum.DefineEnum_ByRefUnderlyingType_ThrowsCOMExceptionOnCreation --nomethod System.Reflection.Emit.Tests.ModuleBuilderDefineType.DefineType --nomethod System.Reflection.Emit.Tests.ModuleBuilderGetArrayMethod.GetArrayMethod_ValidArrayValues_VoidReturnType --nomethod System.Reflection.Emit.Tests.ModuleBuilderGetArrayMethod.GetArrayMethod_ValidArrayValues_ValueReturnType --nomethod System.Reflection.Emit.Tests.ModuleBuilderGetArrayMethod.GetArrayMethod_ValidArrayValues_ReferenceReturnType --nomethod System.Reflection.Emit.Tests.ModuleBuilderGetArrayMethod.GetArrayMethod_ValidArrayValues_ValueParameterType --nomethod System.Reflection.Emit.Tests.ModuleBuilderGetArrayMethod.GetArrayMethod_ValidArrayValues_ReferenceParameterType --nomethod System.Reflection.Emit.Tests.ModuleBuilderGetArrayMethod.GetArrayMethod_JaggedArray --nomethod System.Reflection.Emit.Tests.ModuleBuilderGetArrayMethod.GetArrayMethod_MultiDimensionalArray --nomethod System.Reflection.Emit.Tests.ModuleBuilderGetArrayMethod.GetArrayMethod_NullParameters --nomethod System.Reflection.Emit.Tests.ModuleBuilderGetArrayMethod.GetArrayMethod_ArrayClassNotArray_ThrowsArgumentException --nomethod System.Reflection.Emit.Tests.ModuleBuilderGetArrayMethod.GetArrayMethod_InvalidArgument_ThrowsArgumentException --nomethod System.Reflection.Emit.Tests.PropertyBuilderTest2.AddOtherMethod --nomethod System.Reflection.Emit.Tests.PropertyBuilderTest11.SetConstant --nomethod System.Reflection.Emit.Tests.PropertyBuilderTest11.SetConstant_TypeNotConstant_ThrowsArgumentException --nomethod System.Reflection.Emit.Tests.PropertyBuilderTest12.SetCustomAttribute_CustomAttributeBuilder_TypeNotCreated_ThrowsInvalidOperationException --nomethod System.Reflection.Emit.Tests.PropertyBuilderTest12.SetCustomAttribute_ConstructorInfo_ByteArray_TypeAlreadyCreated_ThrowsInvalidOperationException --nomethod System.Reflection.Emit.Tests.PropertyBuilderTest15.TestThrowsExceptionForCreateTypeCalled --nomethod System.Reflection.Emit.Tests.PropertyBuilderTest16.SetValue_ThrowsNotSupportedException --nomethod System.Reflection.Emit.Tests.TypeBuilderAddInterfaceImplementation.AddInterfaceImplementation_TypeNotInterface_ThrowsTypeLoadExceptionOnCreation --nomethod System.Reflection.Emit.Tests.TypeBuilderAddInterfaceImplementation.AddInterfaceImplementation_TypeDoesntImplementInterface_ThrowsTypeLoadExceptionOnCreation --nomethod System.Reflection.Emit.Tests.TypeBuilderAssemblyQualifiedName.AssemblyQualifiedName --nomethod System.Reflection.Emit.Tests.TypeBuilderCreateType.CreateType_BadAttributes --nomethod System.Reflection.Emit.Tests.TypeBuilderCreateTypeInfo.CreateType_InvalidTypeAttributes_Throws - -# Extra RTSpecialName attribute --nomethod System.Reflection.Emit.Tests.TypeBuilderDefineConstructor.DefineConstructor --nomethod System.Reflection.Emit.Tests.TypeBuilderDefineConstructor.DefineConstructor_NullRequiredAndOptionalCustomModifiers --nomethod System.Reflection.Emit.Tests.TypeBuilderDefineDefaultConstructor.DefineDefaultConstructor --nomethod System.Reflection.Emit.Tests.MethodBuilderDefineTypeInitializer.DefineTypeInitializer - --nomethod System.Reflection.Emit.Tests.TypeBuilderDefineMethodTests.DefineMethod --nomethod System.Reflection.Emit.Tests.TypeBuilderDefineFieldTests.DefineField --nomethod System.Reflection.Emit.Tests.TypeBuilderDefineFieldTests.DefineField_InvalidFieldAttributes_ThrowsTypeLoadExceptionOnCreation --nomethod System.Reflection.Emit.Tests.TypeBuilderDefineFieldTests.DefineField_DynamicFieldTypeNotCreated_ThrowsTypeLoadException --nomethod System.Reflection.Emit.Tests.TypeBuilderDefineGenericParameters.DefineGenericParameters_AlreadyDefinedGenericParameters_ThrowsInvalidOperationException --nomethod System.Reflection.Emit.Tests.TypeBuilderDefineEvent.DefineEvent --nomethod System.Reflection.Emit.Tests.TypeBuilderDefineEvent.DefineProperty_InvalidUnicodeChars --nomethod System.Reflection.Emit.Tests.MethodBuilderDefineMethodOverride.DefineMethodOverride_NothingToOverride_ThrowsTypeLoadExceptionOnCreation --nomethod System.Reflection.Emit.Tests.MethodBuilderDefineMethodOverride.DefineMethodOverride_ClassDoesNotImplementOrInheritMethod_ThrowsTypeLoadExceptionOnCreation --nomethod System.Reflection.Emit.Tests.MethodBuilderDefineMethodOverride.DefineMethodOverride_BodyAndDeclarationTheSame_ThrowsTypeLoadExceptionOnCreation --nomethod System.Reflection.Emit.Tests.MethodBuilderDefineMethodOverride.DefineMethodOverride_CalledTwiceWithDifferentBodies_ThrowsTypeLoadExceptionOnCreation --nomethod System.Reflection.Emit.Tests.MethodBuilderDefineMethodOverride.DefineMethodOverride_BodyAndDeclarationHaveDifferentSignatures_ThrowsTypeLoadExceptionOnCreation --nomethod System.Reflection.Emit.Tests.TypeBuilderDefineNestedType.DefineNestedType --nomethod System.Reflection.Emit.Tests.TypeBuilderDefineNestedType.DefineNestedType_LongName_ThrowsArgumentException --nomethod System.Reflection.Emit.Tests.TypeBuilderDefineNestedType.DefineNestedType_InvalidAttributes_ThrowsArgumentException --nomethod System.Reflection.Emit.Tests.TypeBuilderDefineNestedType.DefineNestedType_InvalidParent_ThrowsArgumentException --nomethod System.Reflection.Emit.Tests.TypeBuilderDefineNestedType.DefineNestedType_InvalidInterfaceType_ThrowsTypeLoadExceptionOnCreation --nomethod System.Reflection.Emit.Tests.TypeBuilderDefineProperty.DefineProperty --nomethod System.Reflection.Emit.Tests.TypeBuilderDefineProperty.DefineProperty_OpenGenericReturnType_ThrowsBadImageFormatExceptionGettingCreatedPropertyType --nomethod System.Reflection.Emit.Tests.TypeBuilderDefineProperty.DefineProperty_NullParameterType_ThrowsArgumentNullException --nomethod System.Reflection.Emit.Tests.TypeBuilderDefineProperty.DefineProperty_OpenGenericParameterType_ThrowsBadImageFormatExceptionGettingCreatedPropertyType --nomethod System.Reflection.Emit.Tests.TypeBuilderDefineProperty.DefineProperty_DynamicPropertyTypeNotCreated_ThrowsTypeLoadException --nomethod System.Reflection.Emit.Tests.TypeBuilderDefineProperty.DefineProperty_DynamicParameterTypeNotCreated_ThrowsTypeLoadException --nomethod System.Reflection.Emit.Tests.TypeBuilderDefineProperty.DefineProperty_CalledMultipleTimes_Works --nomethod System.Reflection.Emit.Tests.TypeBuilderGetConstructor.GetConstructor_TypeNotTypeBuilder_ThrowsArgumentException --nomethod System.Reflection.Emit.Tests.TypeBuilderGetConstructor.GetConstructor_DeclaringTypeOfConstructorNotGenericTypeDefinitionOfType_ThrowsArgumentException --nomethod System.Reflection.Emit.Tests.TypeBuilderGetConstructor.GetConstructor_TypeNotGeneric_ThrowsArgumentException --nomethod System.Reflection.Emit.Tests.TypeBuilderGetField.GetField_TypeNotTypeBuilder_ThrowsArgumentException --nomethod System.Reflection.Emit.Tests.TypeBuilderGetField.GetField_DeclaringTypeOfFieldNotGenericTypeDefinitionOfType_ThrowsArgumentException --nomethod System.Reflection.Emit.Tests.TypeBuilderGetField.GetField_TypeNotGeneric_ThrowsArgumentException --nomethod System.Reflection.Emit.Tests.TypeBuilderGetMethod.GetMethod_TypeNotTypeBuilder_ThrowsArgumentException --nomethod System.Reflection.Emit.Tests.TypeBuilderGetMethod.GetMethod_MethodDefinitionNotInTypeGenericDefinition_ThrowsArgumentException --nomethod System.Reflection.Emit.Tests.TypeBuilderGetMethod.GetMethod_MethodNotGenericTypeDefinition_ThrowsArgumentException --nomethod System.Reflection.Emit.Tests.TypeBuilderGetMethod.GetMethod_TypeIsNotGeneric_ThrowsArgumentException --nomethod System.Reflection.Emit.Tests.TypeBuilderGUID.Guid_TypeCreated_NotEmpty - --nomethod System.Reflection.Emit.Tests.AssemblyTests.DefineDynamicAssembly_AssemblyName_AssemblyBuilderAccess --nomethod System.Reflection.Emit.Tests.AssemblyTests.DefineDynamicAssembly_AssemblyName_AssemblyBuilderAccess_CustomAttributeBuilder - -# need to reflect https://github.com/dotnet/coreclr/pull/24937 changes --nomethod System.Reflection.Emit.Tests.MethodBuilderSetSignature.SetSignature_AllParametersNull --nomethod System.Reflection.Emit.Tests.MethodBuilderSetReturnType.SetReturnType_NullReturnType_ReturnsVoid --nomethod System.Reflection.Emit.Tests.MethodBuilderGetGenericArguments.GetGenericArguments_NonGenericMethod_ReturnsEmptyArray --nomethod System.Reflection.Emit.Tests.MethodBuilderSetSignature.SetSignature_NullReturnType_CustomModifiersSetToWrongTypes - -#################################################################### -## System.Reflection.Tests -#################################################################### - -# Expected ArgumentException, but none was thrown -# https://github.com/mono/mono/issues/15024 --nomethod System.Reflection.Tests.MethodInfoTests.Invoke_OptionalParameterUnassingableFromMissing_WithMissingValue_ThrowsArgumentException - -# Static ctors cannot be invoke with one Invoke overload -# https://github.com/mono/mono/issues/15025 --nomethod System.Reflection.Tests.ConstructorInfoTests.Invoke_StaticConstructor_ThrowsMemberAccessException - -# Expected MemberAccessException, but we're throwing TargetException -# https://github.com/mono/mono/issues/15026 --nomethod System.Reflection.Tests.ConstructorInfoTests.Invoke_AbstractClass_ThrowsMemberAccessException - -# Expected TargetParameterCountException, but we have ArgumentException -# https://github.com/mono/mono/issues/15027 --nomethod System.Reflection.Tests.PropertyInfoTests.GetValue_Invalid - -# Expected empty string, but got enumType instead -# https://github.com/mono/mono/issues/15028 --nomethod System.Reflection.Tests.TypeInfoTests.IsEnumDefined_Invalid - -# Fails because our Object class has extra instance methods -# https://github.com/mono/mono/issues/15029 --nomethod System.Reflection.Tests.TypeInfoTests.FindMembers --nomethod System.Reflection.Tests.TypeInfoTests.GetMethods --nomethod System.Reflection.Tests.TypeInfoTests.GetMembers --nomethod System.Reflection.Tests.TypeInfoTests.GetMethod - -# CustomConstantAttribute not supported -# https://github.com/mono/mono/issues/15037 --nomethod System.Reflection.Tests.ParameterInfoTests.RawDefaultValueFromAttribute - -# SKIPPED --nomethod System.Reflection.Tests.MemberInfoTests.HasSameMetadataDefinitionAs__CornerCase_HasElementTypes - -# Assertion failed... Not sure why -# https://github.com/mono/mono/issues/15069 --nomethod System.Reflection.Tests.MemberInfoTests.HasSameMetadataDefinitionAs_GenericTypeParameters - -# relies on specific exception message --nomethod System.Reflection.Tests.AssemblyTests.LoadFile_ValidPEBadIL_ThrowsBadImageFormatExceptionWithPath --nomethod System.Reflection.Tests.AssemblyTests.LoadFile_PartiallyQualifiedPath_ThrowsArgumentException --nomethod System.Reflection.Tests.AssemblyTests.LoadFile_NoSuchPath_ThrowsFileNotFoundException - -# fails on Helix --nomethod System.Reflection.Tests.AssemblyTests.LoadFromStream_Location_IsEmpty - -#################################################################### -## System.Runtime.InteropServices.Tests -#################################################################### - -# Marshal Methods WILL NOT BE Implemented in MonoVM -# https://github.com/mono/mono/issues/15085 --nomethod System.Runtime.InteropServices.Tests.IntPtrTests.ReadIntPtr_NotReadable_ThrowsArgumentException --nomethod System.Runtime.InteropServices.Tests.IntPtrTests.WriteIntPtr_BlittableObject_Roundtrips --nomethod System.Runtime.InteropServices.Tests.IntPtrTests.WriteIntPtr_StructWithReferenceTypes_ReturnsExpected --nomethod System.Runtime.InteropServices.Tests.Int64Tests.WriteInt64_StructWithReferenceTypes_ReturnsExpected --nomethod System.Runtime.InteropServices.Tests.Int64Tests.ReadInt64_BlittableObject_ReturnsExpected --nomethod System.Runtime.InteropServices.Tests.Int16Tests.ReadInt16_NullObject_ThrowsAccessViolationException --nomethod System.Runtime.InteropServices.Tests.Int16Tests.ReadInt16_NotReadable_ThrowsArgumentException --nomethod System.Runtime.InteropServices.Tests.Int16Tests.WriteInt16_NotReadable_ThrowsArgumentException --nomethod System.Runtime.InteropServices.Tests.Int16Tests.WriteInt16_BlittableObject_Roundtrips --nomethod System.Runtime.InteropServices.Tests.Int16Tests.ReadInt16_StructWithReferenceTypes_ReturnsExpected --nomethod System.Runtime.InteropServices.Tests.Int16Tests.WriteInt16_NullObject_ThrowsAccessViolationException --nomethod System.Runtime.InteropServices.Tests.Int16Tests.ReadInt16_BlittableObject_ReturnsExpected --nomethod System.Runtime.InteropServices.Tests.Int16Tests.WriteInt16_StructWithReferenceTypes_ReturnsExpected --nomethod System.Runtime.InteropServices.Tests.IntPtrTests.ReadIntPtr_BlittableObject_ReturnsExpected --nomethod System.Runtime.InteropServices.Tests.Int64Tests.WriteInt64_NotReadable_ThrowsArgumentException --nomethod System.Runtime.InteropServices.Tests.Int64Tests.WriteInt64_BlittableObject_Roundtrips --nomethod System.Runtime.InteropServices.Tests.Int64Tests.WriteInt64_NullObject_ThrowsAccessViolationException --nomethod System.Runtime.InteropServices.Tests.Int64Tests.ReadInt64_NotReadable_ThrowsArgumentException --nomethod System.Runtime.InteropServices.Tests.Int32Tests.ReadInt32_NullObject_ThrowsAccessViolationException --nomethod System.Runtime.InteropServices.Tests.Int32Tests.WriteInt32_NullObject_ThrowsAccessViolationException --nomethod System.Runtime.InteropServices.Tests.Int32Tests.WriteInt32_BlittableObject_Roundtrips --nomethod System.Runtime.InteropServices.Tests.Int32Tests.WriteInt32_NotReadable_ThrowsArgumentException --nomethod System.Runtime.InteropServices.Tests.Int32Tests.WriteInt32_StructWithReferenceTypes_ReturnsExpected --nomethod System.Runtime.InteropServices.Tests.Int32Tests.ReadInt32_StructWithReferenceTypes_ReturnsExpected --nomethod System.Runtime.InteropServices.Tests.Int32Tests.ReadInt32_NotReadable_ThrowsArgumentException --nomethod System.Runtime.InteropServices.Tests.Int32Tests.ReadInt32_BlittableObject_ReturnsExpected --nomethod System.Runtime.InteropServices.Tests.IntPtrTests.ReadIntPtr_NullObject_ThrowsAccessViolationException --nomethod System.Runtime.InteropServices.Tests.IntPtrTests.WriteIntPtr_NullObject_ThrowsAccessViolationException --nomethod System.Runtime.InteropServices.Tests.IntPtrTests.WriteIntPtr_NotReadable_ThrowsArgumentException --nomethod System.Runtime.InteropServices.Tests.IntPtrTests.ReadIntPtr_StructWithReferenceTypes_ReturnsExpected --nomethod System.Runtime.InteropServices.Tests.ByteTests.ReadByte_BlittableObject_ReturnsExpected --nomethod System.Runtime.InteropServices.Tests.ByteTests.WriteByte_NullObject_ThrowsAccessViolationException --nomethod System.Runtime.InteropServices.Tests.ByteTests.WriteByte_StructWithReferenceTypes_ReturnsExpected --nomethod System.Runtime.InteropServices.Tests.ByteTests.ReadByte_StructWithReferenceTypes_ReturnsExpected --nomethod System.Runtime.InteropServices.Tests.ByteTests.WriteByte_BlittableObject_Roundtrips --nomethod System.Runtime.InteropServices.Tests.ByteTests.WriteByte_NotReadable_ThrowsArgumentException --nomethod System.Runtime.InteropServices.Tests.ByteTests.ReadByte_NullObject_ThrowsAccessViolationException --nomethod System.Runtime.InteropServices.Tests.ByteTests.ReadByte_NotReadable_ThrowsArgumentException --nomethod System.Runtime.InteropServices.Tests.Int64Tests.ReadInt64_NullObject_ThrowsAccessViolationException --nomethod System.Runtime.InteropServices.Tests.Int64Tests.ReadInt64_StructWithReferenceTypes_ReturnsExpected --nomethod System.Runtime.InteropServices.Tests.GetExceptionCodeTests.* --nomethod System.Runtime.InteropServices.Tests.GetExceptionPointersTests.GetExceptionPointers_ReturnsExpected - - -# Not sure what to check -# Expected ArgumentException to be thrown, but none was -# https://github.com/mono/mono/issues/15087 --nomethod System.Runtime.InteropServices.Tests.DestroyStructureTests.DestroyStructure_NonRuntimeType_ThrowsArgumentException --nomethod System.Runtime.InteropServices.Tests.OffsetOfTests.OffsetOf_NotMarshallable_ThrowsArgumentException --nomethod System.Runtime.InteropServices.Tests.SizeOfTests.SizeOf_InvalidType_ThrowsArgumentException - -# Wants exception messages to be non-empty -# https://github.com/mono/mono/issues/15093 --nomethod System.Runtime.InteropServices.Tests.GetExceptionForHRTests.GetExceptionForHR_ErrorInfo_ReturnsValidException --nomethod System.Runtime.InteropServices.Tests.GetExceptionForHRTests.GetExceptionForHR_NoErrorInfo_ReturnsValidException --nomethod System.Runtime.InteropServices.Tests.ThrowExceptionForHRTests.ThrowExceptionForHR_NoErrorInfo_ReturnsValidException --nomethod System.Runtime.InteropServices.Tests.ThrowExceptionForHRTests.ThrowExceptionForHR_ErrorInfo_ReturnsValidException - -# Supported on Mono -# Expected ArgumentException -# https://github.com/mono/mono/issues/15097 --nomethod System.Runtime.InteropServices.Tests.GetFunctionPointerForDelegateTests.GetFunctionPointer_GenericDelegate_ThrowsArgumentException - -# AE with The structure must not be a value class; -# https://github.com/mono/mono/issues/15101 --nomethod System.Runtime.InteropServices.Tests.PtrToStructureTests.PtrToStructure_ZeroPointer_ThrowsArgumentNullException - -# Expected 255 / Actual 1 -# https://github.com/mono/mono/issues/15102 --nomethod System.Runtime.InteropServices.Tests.StructureToPtrTests.StructureToPtr_ByValBoolArray_Success - -# MarshalDirectiveException -# https://github.com/mono/mono/issues/15103 --nomethod System.Runtime.InteropServices.Tests.StructureToPtrTests.StructureToPtr_ByValDateArray_Success - -# Expects AE but none was thrown -# https://github.com/mono/mono/issues/15104 --nomethod System.Runtime.InteropServices.Tests.StructureToPtrTests.StructureToPtr_InvalidLengthByValArrayInStruct_ThrowsArgumentException - -#################################################################### -## System.Runtime.Serialization.Formatters.Tests -#################################################################### - -# Expected MemberAccessException but none was thrown -# https://github.com/mono/mono/issues/15111 --nomethod System.Runtime.Serialization.Formatters.Tests.FormatterServicesTests.GetUninitializedObject_OpenGenericClass_ThrowsMemberAccessException - -# NotNull Assertion failure -# https://github.com/mono/mono/issues/15112 --nomethod System.Runtime.Serialization.Formatters.Tests.SerializationGuardTests.BlockReflectionDodging - -# Expected AE but none thrown -# https://github.com/mono/mono/issues/15113 --nomethod System.Runtime.Serialization.Formatters.Tests.FormatterServicesTests.GetUninitializedObject_NotSupportedType_ThrowsArgumentException - -# Expected TypeInitializationException but none thrown -# https://github.com/mono/mono/issues/15114 --nomethod System.Runtime.Serialization.Formatters.Tests.FormatterServicesTests.GetUninitializedObject_StaticConstructorThrows_ThrowsTypeInitializationException - -# Object reference not set to an instance of an object error -# https://github.com/mono/mono/issues/15115 --nomethod System.Runtime.Serialization.Formatters.Tests.BinaryFormatterTests.ValidateAgainstBlobs - -#################################################################### -## System.Runtime.Tests -#################################################################### - -# https://github.com/mono/mono/issues/14291 incorrect line numbers -# See https://github.com/mono/mono/issues/15140 and https://github.com/mono/mono/issues/15141 --nomethod System.Tests.ExceptionTests.ThrowStatementDoesNotResetExceptionStackLineSameMethod --nomethod System.Tests.ExceptionTests.ThrowStatementDoesNotResetExceptionStackLineOtherMethod - -# RuntimeAssembly.IsCollectible is not implemented yet -# Implementation task https://github.com/mono/mono/issues/15142 --nomethod System.Reflection.Tests.IsCollectibleTests.* - -# Mono ignores [Optional] attribute defined on parameters in delegates -# https://github.com/mono/mono/issues/15148 --nomethod System.Tests.DelegateTests.DynamicInvoke_OptionalParameterUnassingableFromMissing_WithMissingValue --nomethod System.Tests.DelegateTests.DynamicInvoke_OptionalParameter_WithMissingValue --nomethod System.Tests.DelegateTests.DynamicInvoke_ParameterSpecification_ArrayOfMissing - -# mono doesn't support termination signals, the test kills a process via libc's kill(pid) -# and expects it to trigger domain.ProcessExit event --nomethod System.Tests.ExitCodeTests.SigTermExitCode - -# error: Invalid IL code in (wrapper dynamic-method) object: (System.Xml.Xsl.Runtime.XmlQueryRuntime,System.Xml.XPath.XPathNavigator,double): IL_0179: ret --nomethod System.Tests.Types.VoidTests.IsByRef_Get_ReturnsExpected - -# throws ArgumentException -# https://github.com/mono/mono/issues/15152 --nomethod System.Reflection.Tests.PointerTests.PointerPropertyGetValue - -# GCSettings.LatencyMode is not implemented --nomethod System.Tests.GCTests.LatencyRoundtrips - -# GC.GetGCMemoryInfo is not implemented --nomethod System.Tests.GCExtendedTests.GetGCMemoryInfo - -# flaky test, System.ArgumentNullException : Key cannot be null. Parameter name: key --nomethod System.Tests.GetEnvironmentVariable.EnvironmentVariablesAreHashtable - -#################################################################### -## System.Threading.Tests -#################################################################### - -# Process hangs and test fails with [ERROR] FATAL UNHANDLED EXCEPTION: System.Threading.WaitHandleCannotBeOpenedException: No handle of the given name exists. -# https://github.com/mono/mono/issues/15157 --nomethod System.Threading.Tests.MutexTests.CrossProcess_NamedMutex_ProtectedFileAccessAtomic - -# Fails with typeof(System.Threading.WaitHandleCannotBeOpenedException): A WaitHandle with system-wide name '' cannot be created. A WaitHandle of a different type might have the same name. -# Expects an ArgumentException -# https://github.com/mono/mono/issues/15158 --nomethod System.Threading.Tests.MutexTests.OpenExisting_InvalidNames - -# Expects ArgumentException but none is thrown -# https://github.com/mono/mono/issues/15159 --nomethod System.Threading.Tests.MutexTests.Ctor_InvalidNames_Unix - -# Expects PlatformNotSupportedException, but we give an ArgumentNullException -# https://github.com/mono/mono/issues/15160 --nomethod System.Threading.Tests.SemaphoreTests.OpenExisting_NotSupported_Unix - -# Expects PlatformNotSupportedException but none thrown -# https://github.com/mono/mono/issues/15161 --nomethod System.Threading.Tests.SemaphoreTests.Ctor_NamesArentSupported_Unix - -#################################################################### -## System.Threading.Tests -#################################################################### - -# Requires precise GC (should be ignored in dotnet/corefx for mono) --nomethod System.Threading.Tasks.Tests.ExecutionContextFlowTest.TaskCompletionSourceDoesntCaptureExecutionContext - -# flaky, causes stack overflow --nomethod System.Threading.Tasks.Tests.TaskContinueWithTests.LongContinuationChain_ContinueWith_DoesNotStackOverflow - -#################################################################### -## System.Threading.ThreadPool.Tests -#################################################################### - -# Tests for ThreadPool.SetMaxThreads(-1, -1) == true, which only happens to work on CoreCLR because -# the managed SetMaxThreadsNative prototype uses "int"s while the unmanaged code uses "DWORD"s and -# thus it interprets it as large positive numbers. -# -# https://github.com/mono/mono/issues/15164 --nomethod System.Threading.ThreadPools.Tests.ThreadPoolTests.SetMinMaxThreadsTest - -# TODO: Differences in behaviour between NetFX and CoreFX --nomethod System.Threading.ThreadPools.Tests.ThreadPoolTests.SetMinThreadsTo0Test - -# Explicitly skipped if it's MonoVM (SkipOnTargetFramework) --nomethod System.Threading.ThreadPools.Tests.ThreadPoolTests.SetMinMaxThreadsTest_ChangedInDotNetCore - -#################################################################### -## System.ComponentModel.Composition.Tests -#################################################################### - --nomethod System.ComponentModel.Composition.CompositionServicesTests.GetDefaultContractNameTest --nomethod System.ComponentModel.Composition.MetadataViewProviderTests.GetMetadataView_InterfaceWithIndexer_ShouldThrowNotSupportedException --nomethod Tests.Integration.ExportFactoryTests.ExportFactoryStandardImports_ShouldWorkProperly - -# flaky test - System.TypeLoadException : Could not load type '_proxy_System.ComponentModel.Composition.IStronglyTypedStructure_3b7f133d-79c7-449e-8f68-22aa093dbb8d' from assembly ''. --nomethod System.ComponentModel.Composition.MetadataAttributeTests.StronglyTypedStructureTest --nomethod System.ComponentModel.Composition.MetadataAttributeTests.StronglyTypedStructureTestWithTransparentViews --nomethod System.ComponentModel.Composition.MetadataViewProviderTests.GetMetadataView_IMetadataViewWithDefaultedInt64 --nomethod System.ComponentModel.Composition.ExportCollectionTests.ImportCollectionsFromContainerOnly -# disable the whole namespace, https://github.com/mono/mono/issues/16417 --nonamespace System.ComponentModel.Composition -# same issue (only System.ComponentModel.Composition uses this namespace) --nonamespace Tests.Integration - -#################################################################### -## System.Data.Common.Tests -#################################################################### - -# Invalid IL - IL_00bc: castclass 0x0100000d --nomethod System.Data.Tests.SqlTypes.SqlCharsTest.ReadWriteXmlTest - -# Invalid IL code in Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSqlInt32:Read1_int (): IL_00bc: castclass 0x0100000d -# https://github.com/mono/mono/issues/15174 --nomethod System.Data.Tests.SqlTypes.SqlInt32Test.ReadWriteXmlTest - -# System.InvalidProgramException : Invalid IL code in Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSqlInt64:Read1_long (): IL_00bc: castclass 0x0100000d -# https://github.com/mono/mono/issues/15175 --nomethod System.Data.Tests.SqlTypes.SqlInt64Test.ReadWriteXmlTest - -# System.InvalidProgramException : Invalid IL code in Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSqlDouble:Read1_double (): IL_00bc: castclass 0x0100000d -# https://github.com/mono/mono/issues/15176 --nomethod System.Data.Tests.SqlTypes.SqlDoubleTest.ReadWriteXmlTest - -# System.InvalidProgramException : Invalid IL code in Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSqlInt16:Read1_short (): IL_00bc: castclass 0x0100000d -# https://github.com/mono/mono/issues/15177 --nomethod System.Data.Tests.SqlTypes.SqlInt16Test.ReadWriteXmlTest - -# System.InvalidProgramException : Invalid IL code in Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSqlDecimal:Read1_decimal (): IL_00bc: castclass 0x0100000d -# https://github.com/mono/mono/issues/15178 --nomethod System.Data.Tests.SqlTypes.SqlDecimalTest.ReadWriteXmlTest - -# System.InvalidProgramException : Invalid IL code in Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSqlString:Read1_string (): IL_00bc: castclass 0x0100000d -# https://github.com/mono/mono/issues/15179 --nomethod System.Data.Tests.SqlTypes.SqlStringTest.ReadWriteXmlTest - -# Assert IsNotNull failure -# https://github.com/mono/mono/issues/15180 --nomethod System.Data.Common.Tests.DbConnectionTests.ProviderFactoryTest - -#################################################################### -## System.Diagnostics.StackTrace.Tests -#################################################################### - -# Expected -1, but got 0 -# https://github.com/mono/mono/issues/15183 --nomethod System.Diagnostics.Tests.StackFrameTests.Ctor_SkipFrames - -# Assertion differences -# https://github.com/mono/mono/issues/15184 --nomethod System.Diagnostics.Tests.StackFrameTests.Ctor_Filename_LineNumber_ColNumber - -# A little off -# Assert.Equal() Failure -# ↓ (pos 0) -# Expected: MoveNext at offset 90 in file:line:column··· -# Actual: .ctor at offset 90 in file:line:column Fi··· -# https://github.com/mono/mono/issues/15186 --nomethod System.Diagnostics.Tests.StackFrameTests.ToString_Invoke_ReturnsExpected - -# Assertion differences. Expects -1, got 0 -# https://github.com/mono/mono/issues/15187 --nomethod System.Diagnostics.Tests.StackFrameTests.Ctor_SkipFrames_FNeedFileInfo - -# JIT should not inline custom throw helpers --nomethod System.Diagnostics.Tests.StackTraceTests.Ctor_Exception_SkipFrames --nomethod System.Diagnostics.Tests.StackTraceTests.Ctor_Exception_SkipFrames_FNeedFileInfo - -# Assert.Contains() Failure --nomethod System.Diagnostics.Tests.StackTraceTests.ToString_Invoke_ReturnsExpected - -#################################################################### -## System.Numerics.Vectors.Tests -#################################################################### - -# Expects NotSupportedException, but actual was TypeInitializationException -# https://github.com/mono/mono/issues/15190 --nomethod System.Numerics.Tests.GenericVectorTests.ConstructorWithUnsupportedTypes_DateTime --nomethod System.Numerics.Tests.GenericVectorTests.ConstructorWithUnsupportedTypes_Char --nomethod System.Numerics.Tests.GenericVectorTests.ConstructorWithUnsupportedTypes_Guid - -#################################################################### -## System.Reflection.Context.Tests -#################################################################### - -# System.ArgumentNullException : Value cannot be null. -# Parameter name: attributeType -# https://github.com/mono/mono/issues/15191 --nomethod System.Reflection.Context.Tests.CustomReflectionContextTests.MapType_MemberAttributes_Success --nomethod System.Reflection.Context.Tests.CustomReflectionContextTests.MapType_ParameterAttributes_Success --nomethod System.Reflection.Context.Tests.CustomReflectionContextTests.MapType_Interface_Throws - -#################################################################### -## System.Reflection.Metadata.Tests -#################################################################### - -# Assertion... Expected true, got false -# https://github.com/mono/mono/issues/15194 --nomethod System.Reflection.Tests.MetadataTokenTests.SuccessImpliesNonNilWithCorrectTable -# Test broken on Mono, added in https://github.com/dotnet/corefx/pull/40581 --nomethod System.Reflection.Tests.MetadataLoadContextTests.RelocatableAssembly - -#################################################################### -## System.Runtime.Loader.RefEmitLoadContext.Tests -#################################################################### - -# Relies on AssemblyLoadContext.GetLoadContext, which is not implemented --nomethod System.Runtime.Loader.Tests.RefEmitLoadContextTests.LoadRefEmitAssembly - -#################################################################### -## System.Threading.Overlapped.Tests -#################################################################### - -# Overflow Exception -# https://github.com/mono/mono/issues/15197 -# https://github.com/mono/mono/issues/15311 -# These tests should be ignored on x64 in dotnet/corefx --nomethod OverlappedTests.PropertyTest2 --nomethod OverlappedTests.PropertyTest3 - -# NRE -# https://github.com/mono/mono/issues/15312 --nomethod ThreadPoolBoundHandleTests.BindHandle_MinusOneAsHandle_ThrowsArgumentException - -# No Exception thrown -# https://github.com/mono/mono/issues/15313 --nomethod ThreadPoolBoundHandleTests.PreAllocatedOverlapped_NonBlittableTypeAsPinData_Throws --nomethod ThreadPoolBoundHandleTests.PreAllocatedOverlapped_ObjectArrayWithNonBlittableTypeAsPinData_Throws --nomethod ThreadPoolBoundHandleTests.GetNativeOverlappedState_NullAsNativeOverlapped_ThrowsArgumentNullException - -# NRE on BindHandle -# https://github.com/mono/mono/issues/15314 --nomethod ThreadPoolBoundHandleTests.BindHandle_ZeroAsHandle_ThrowsArgumentException --nomethod ThreadPoolBoundHandleTests.BindHandle_NullAsHandle_ThrowsArgumentNullException --nomethod ThreadPoolBoundHandleTests.BindHandle_ValidHandle_ThrowsPlatformNotSupportedException - -# Test not run --nomethod ThreadPoolBoundHandleTests.PreAllocatedOverlapped_NullAsCallback_ThrowsArgumentNullException - -#################################################################### -## System.Runtime.Extensions.Tests -#################################################################### - -# Mono expands generic Types in stacktraces unlike the .NET Core (sounds more like a feature: https://gist.github.com/EgorBo/3abb37d2ff4fc904bc7472c62498f933) -# https://github.com/mono/mono/issues/15315 --nomethod System.Tests.EnvironmentStackTrace.StackTraceTest - -# These events are not wired up in mono -# https://github.com/mono/mono/issues/16246 --nomethod System.Tests.AppDomainTests.ResourceResolve --nomethod System.Tests.AppDomainTests.FirstChanceException_Called --nomethod System.Tests.AppDomainTests.AssemblyResolve_FirstChanceException --nomethod System.Tests.AppDomainTests.AssemblyResolve_IsNotCalledForCoreLibResources - -# AssemblyLoadContext.SetProfileOptimizationRoot is no-op (not implemented) --nomethod System.Runtime.Tests.ProfileOptimizationTest.ProfileOptimization_CheckFileExists - -#################################################################### -## System.Runtime.Handles.Tests -#################################################################### - -# NRE in SafeHandle.Dispose -# https://github.com/mono/mono/issues/17224 --noclass SafeWaitHandleExtensions_4000_Tests --noclass SafeWaitHandle_4000_Tests - -#################################################################### -## System.Reflection.TypeExtensions.Tests -#################################################################### - -# Assertion difference. Expects 2, but got 1 -# https://github.com/mono/mono/issues/15316 --nomethod System.Reflection.Tests.ConstructorInfoInvokeArrayTests.Invoke_1DArrayConstructor - -# Exception difference -# https://github.com/mono/mono/issues/15317 --nomethod System.Reflection.Tests.ConstructorInfoTests.Invoke_Invalid - -# Large Array support -# https://github.com/mono/mono/issues/15318 --nomethod System.Reflection.Tests.ConstructorInfoInvokeArrayTests.Invoke_LargeDimensionalArrayConstructor - -# Throws a lot of different exceptions -# https://github.com/mono/mono/issues/15319 --nomethod System.Reflection.Tests.PropertyInfoTests.GetGetMethod_GetSetMethod - -# Extra methods -# https://github.com/mono/mono/issues/15320 --nomethod System.Reflection.Tests.TypeTests.GetMethods - -#################################################################### -## System.Reflection.Emit.Lightweight.Tests -#################################################################### - -# A different CreateDelegate issue -# https://github.com/mono/mono/issues/15321 --nomethod System.Reflection.Emit.Tests.DynamicMethodGetILGenerator1.GetILGenerator_Int_Module_CoreclrIgnoresSkipVisibility --nomethod System.Reflection.Emit.Tests.DynamicMethodGetILGenerator1.GetILGenerator_Module_CoreclrIgnoresSkipVisibility --nomethod System.Reflection.Emit.Tests.DynamicILInfoTests.GetTokenFor_IntGenerics_Success - -# Need to implement System.Reflection.Emit.DynamicILInfo.SetLocalSignature(Byte[] localSignature) --nomethod System.Reflection.Emit.Tests.DynamicILInfoTests.Test_TwoDimTest --nomethod System.Reflection.Emit.Tests.DynamicILInfoTests.Test_GenericMethod --nomethod System.Reflection.Emit.Tests.DynamicILInfoTests.GetTokenFor_CtorMethodAndField_Success --nomethod System.Reflection.Emit.Tests.DynamicILInfoTests.GetTokenFor_String_Success --nomethod System.Reflection.Emit.Tests.DynamicILInfoTests.GetTokenFor_StringGenerics_Success --nomethod System.Reflection.Emit.Tests.DynamicILInfoTests.Test_CallGM --nomethod System.Reflection.Emit.Tests.DynamicILInfoTests.GetTokenFor_Exception_Success --nomethod System.Reflection.Emit.Tests.DynamicILInfoTests.GetTokenFor_DynamicMethod_Success - -# Need to implement System.Reflection.Emit.DynamicILInfo.SetExceptions(Byte* exceptions, Int32 exceptionsSize) --nomethod System.Reflection.Emit.Tests.DynamicILInfoTests.SetX_NullInput_ThrowsArgumentNullException --nomethod System.Reflection.Emit.Tests.DynamicMethodctor1.InvalidOwner_ThrowsArgumentException - -# Expected: typeof(System.ArgumentOutOfRangeException) -# Actual: typeof(System.OverflowException): Arithmetic operation resulted in an overflow. -# https://github.com/mono/mono/issues/15334 --nomethod System.Reflection.Emit.Tests.DynamicILInfoTests.SetX_NegativeInputSize_ThrowsArgumentOutOfRangeException - -#################################################################### -## System.Runtime.Loader.Tests -#################################################################### - -# NOTE: Not run (relies on collectible ALCs) --nomethod System.Runtime.Loader.Tests.ContextualReflectionTest.* - -# relies on collectible AssemblyLoadContext --nomethod System.Runtime.Loader.Tests.AssemblyLoadContextTest.Unload_* --nomethod System.Runtime.Loader.Tests.AssemblyLoadContextTest.Finalizer_CollectibleWithNoAssemblyLoaded --nomethod System.Runtime.Loader.Tests.AssemblyLoadContextTest.PublicConstructor_Theory --nomethod System.Runtime.Loader.Tests.AssemblyLoadContextTest.Unsupported_FixedAddressValueType - -# relies on specific exception message --nomethod System.Runtime.Loader.Tests.AssemblyLoadContextTest.LoadFromAssemblyPath_PartiallyQualifiedPath_ThrowsArgumentException --nomethod System.Runtime.Loader.Tests.AssemblyLoadContextTest.LoadFromNativeImagePath_PartiallyQualifiedPath_ThrowsArgumentException --nomethod System.Runtime.Loader.Tests.AssemblyLoadContextTest.LoadFromNativeImagePath_PartiallyQualifiedPath_ThrowsArgumentException2 - -# fails --nomethod System.Runtime.Loader.Tests.DefaultLoadContextTests.LoadNonExistentInDefaultContext --nomethod System.Runtime.Loader.Tests.AssemblyLoadContextTest.GetLoadContextTest_ValidUserAssembly --nomethod System.Runtime.Loader.Tests.DefaultLoadContextTests.LoadInDefaultContext --nomethod System.Runtime.Loader.Tests.AssemblyLoadContextTest.LoadFromAssemblyName_AssemblyNotFound --nomethod System.Runtime.Loader.Tests.AssemblyLoadContextTest.LoadAssemblyByPath_ValidUserAssembly --nomethod System.Runtime.Loader.Tests.AssemblyLoadContextTest.LoadAssemblyByStream_ValidUserAssembly --nomethod System.Runtime.Loader.Tests.AssemblyLoadContextTest.LoadFromAssemblyName_ValidTrustedPlatformAssembly - -#################################################################### -## System.Reflection.MetadataLoadContext.Tests -#################################################################### - -# https://github.com/mono/mono/issues/15340 --nomethod System.Reflection.Tests.CustomAttributeTests.TestDllImportPseudoCustomAttribute --nomethod System.Reflection.Tests.CustomAttributeTests.TestMarshalAsPseudoCustomAttribute --nomethod System.Reflection.Tests.ParameterTests.TestPseudoCustomAttributes --nomethod System.Reflection.Tests.TypeTests.TestExplicitOffsetPseudoCustomAttribute - -# Assertion failure: Expected: true, Actual: false -# https://github.com/mono/mono/issues/15344 --nomethod System.Reflection.Tests.TypeInvariants.TestInvariantCode - -# flaky tests --nomethod System.Reflection.Tests.TypeInfoDeclaredImplementedInterfacesTests.* - -#################################################################### -## System.Utf8String.Experimental.Tests -#################################################################### - -# Experimental feature -# Will be removed and we can skip for now. --nomethod System.Tests.MemoryTests.* --nomethod System.Tests.Utf8StringTests.* --nomethod System.Text.Tests.Utf8SpanTests.* --nomethod System.Tests.Utf8ExtensionsTests.* --nomethod System.Tests.Char8Tests.* --nomethod System.Tests.ReflectionTests.* --nomethod System.Net.Http.Tests.Utf8StringContentTests.* - -#################################################################### -## System.Text.RegularExpressions.Tests -#################################################################### - -# hits OOM --nomethod System.Text.RegularExpressions.Tests.RegexMatchTests.Match_Timeout_Loop_Throws - -#################################################################### -## System.ComponentModel.Composition.Registration.Tests -#################################################################### - -# System.ComponentModel.Composition.Registration APIs are not supported on this platform. --nomethod System.ComponentModel.Composition.Registration.Tests.RegistrationBuilderTests.* --nomethod System.ComponentModel.Composition.Registration.Tests.PartBuilderUnitTests.* --nomethod System.ComponentModel.Composition.Registration.Tests.PartBuilderOfTInheritanceTests.* --nomethod System.ComponentModel.Composition.Registration.Tests.ExportBuilderUnitTests.* --nomethod System.ComponentModel.Composition.Registration.Tests.RegistrationBuilderAttributedOverrideUnitTests.* --nomethod System.ComponentModel.Composition.Registration.Tests.PartBuilderOfTTests.* --nomethod System.ComponentModel.Composition.Registration.Tests.PartBuilderTests.* --nomethod System.ComponentModel.Composition.Registration.Tests.ExportBuilderTests.* --nomethod System.ComponentModel.Composition.Registration.Tests.ImportBuilderTests.* --nomethod System.ComponentModel.Composition.Registration.Tests.RegistrationBuilderUnitTests.* --nomethod System.ComponentModel.Composition.Registration.Tests.RegistrationBuilderExportFuncUnitTests.* --nomethod System.ComponentModel.Composition.Registration.Tests.PartBuilderInterfaceTests.* --nomethod System.ComponentModel.Composition.Registration.Tests.ExportInterfacesContractExclusionTests.* - -#################################################################### -## System.Xml.Xsl.XslTransformApi.Tests -#################################################################### - -# Xml differences... Looks like the parsing isn't working -# https://github.com/mono/mono/issues/15353 --nomethod System.Xml.Tests.CXmlResolverTest.TC_AbsolutePath_Transform --nomethod System.Xml.Tests.CTransformResolverTest.TC_AbsolutePath_Transform - -#################################################################### -## System.Security.Cryptography.X509Certificates.Tests -#################################################################### - -# Passes local, but leaving here because it may be flaky --nomethod System.Security.Cryptography.X509Certificates.Tests.DynamicChainTests.TestInvalidAia - -# disabled in CoreCLR too --noclass System.Security.Cryptography.X509Certificates.Tests.X509Certificate2UITests - --nomethod System.IO.Tests.File_Move_Tests.File_Move_From_Unwatched_To_Watched - -# unxpected non-breaking space in strings (char(160) - char(32)) --nomethod DataContractJsonSerializerTests.DCJS_VerifyDateTimeForDateTimeFormat --nomethod DataContractJsonSerializerTests.DCJS_VerifyDateTimeForFormatStringDCJsonSerSettings - -# GetCustomAttribute should ignore NullableContextAttribute? --nomethod System.Reflection.Tests.GetCustomAttributes_MemberInfo.GetCustomAttributeAll --nomethod System.Tests.AttributeGetCustomAttributes.MultipleAttributesTest - -# Unexpected IntPtr.Zero from Interop.Mmap --nomethod System.IO.MemoryMappedFiles.Tests.MemoryMappedViewAccessorTests.ValidAccessLevelCombinations --nomethod System.IO.MemoryMappedFiles.Tests.MemoryMappedViewStreamTests.ValidAccessLevelCombinations - -# requires precise gc (to be ignored in dotnet/corefx, e.g. https://github.com/dotnet/corefx/pull/39176) --nomethod System.IO.Tests.FileStream_Dispose.Dispose_CallsVirtualDispose_TrueArg --nomethod System.Net.Sockets.Tests.DisposedSocket.NonDisposedSocket_SafeHandlesCollected --nomethod System.Diagnostics.TraceSourceTests.SwitchClassTests.PruneTest - -# Flaky test (FileSystemWatcher) --nomethod System.IO.Tests.Directory_NotifyFilter_Tests.FileSystemWatcher_Directory_NotifyFilter_LastWriteTime - -#################################################################### -## System.Security.Cryptography.Encoding.Tests -#################################################################### - -# Broken array copying (https://github.com/mono/mono/issues/16686) --nomethod System.Security.Cryptography.Encoding.Tests.OidTests.LookupOidByFriendlyName_Method_InverseCase --nomethod System.Security.Cryptography.Encoding.Tests.OidTests.LookupOidByValue_Ctor --nomethod System.Security.Cryptography.Encoding.Tests.OidTests.Oid_StringString_NullFriendlyName --nomethod System.Security.Cryptography.Encoding.Tests.OidTests.LookupOidByFriendlyName_Ctor - --nomethod System.Tests.StringComparerTests.CreateCultureOptions_InvalidArguments_Throws diff --git a/src/mono/netcore/System.Private.CoreLib/System.Private.CoreLib.csproj b/src/mono/netcore/System.Private.CoreLib/System.Private.CoreLib.csproj index 0f0cca1431b49..3dc4c5875aa67 100644 --- a/src/mono/netcore/System.Private.CoreLib/System.Private.CoreLib.csproj +++ b/src/mono/netcore/System.Private.CoreLib/System.Private.CoreLib.csproj @@ -176,6 +176,7 @@ + @@ -252,6 +253,7 @@ + diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Text/Utf8Span.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Text/Utf8Span.cs new file mode 100644 index 0000000000000..f3b37c2e952d1 --- /dev/null +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Text/Utf8Span.cs @@ -0,0 +1,109 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Buffers; +using System.ComponentModel; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Text.Unicode; +using Internal.Runtime.CompilerServices; + +#pragma warning disable 0809 //warning CS0809: Obsolete member 'Utf8Span.Equals(object)' overrides non-obsolete member 'object.Equals(object)' + +namespace System.Text +{ + [StructLayout(LayoutKind.Auto)] + public readonly ref partial struct Utf8Span + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public Utf8Span(Utf8String? value) + { + throw new PlatformNotSupportedException(); + } + + public ReadOnlySpan Bytes { get; } + + public static Utf8Span Empty => default; + + public bool IsEmpty => throw new PlatformNotSupportedException(); + + public int Length => throw new PlatformNotSupportedException(); + + public Utf8Span this[Range range] + { + get + { + throw new PlatformNotSupportedException(); + } + } + + public bool IsEmptyOrWhiteSpace() => throw new PlatformNotSupportedException(); + + [Obsolete("Equals(object) on Utf8Span will always throw an exception. Use Equals(Utf8Span) or operator == instead.")] + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object? obj) + { + throw new NotSupportedException(SR.Utf8Span_CannotCallEqualsObject); + } + + public bool Equals(Utf8Span other) => throw new PlatformNotSupportedException(); + + public bool Equals(Utf8Span other, StringComparison comparison) => throw new PlatformNotSupportedException(); + + public static bool Equals(Utf8Span left, Utf8Span right) => throw new PlatformNotSupportedException(); + + public static bool Equals(Utf8Span left, Utf8Span right, StringComparison comparison) + { + throw new PlatformNotSupportedException(); + } + + public override int GetHashCode() + { + throw new PlatformNotSupportedException(); + } + + public int GetHashCode(StringComparison comparison) + { + throw new PlatformNotSupportedException(); + } + + public bool IsAscii() + { + throw new PlatformNotSupportedException(); + } + + public bool IsNormalized(NormalizationForm normalizationForm = NormalizationForm.FormC) + { + throw new PlatformNotSupportedException(); + } + + [EditorBrowsable(EditorBrowsableState.Never)] + public ref readonly byte GetPinnableReference() + { + throw new PlatformNotSupportedException(); + } + + public override string ToString() + { + throw new PlatformNotSupportedException(); + } + + internal unsafe string ToStringNoReplacement() + { + throw new PlatformNotSupportedException(); + } + + public Utf8String ToUtf8String() + { + throw new PlatformNotSupportedException(); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Utf8Span UnsafeCreateWithoutValidation(ReadOnlySpan buffer) + { + throw new PlatformNotSupportedException(); + } + } +} diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Utf8String.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Utf8String.cs new file mode 100644 index 0000000000000..ebb787a56e749 --- /dev/null +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Utf8String.cs @@ -0,0 +1,112 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Buffers; +using System.ComponentModel; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; +using System.Text; +using System.Text.Unicode; +using Internal.Runtime.CompilerServices; + +#pragma warning disable SA1121 // explicitly using type aliases instead of built-in types +#if TARGET_64BIT +using nint = System.Int64; +using nuint = System.UInt64; +#else +using nint = System.Int32; +using nuint = System.UInt32; +#endif + +namespace System +{ + /// + /// Represents an immutable string of UTF-8 code units. + /// + public sealed partial class Utf8String : IComparable, IEquatable + { + public static readonly Utf8String Empty; + public static bool operator ==(Utf8String? left, Utf8String? right) => throw new PlatformNotSupportedException(); + public static bool operator !=(Utf8String? left, Utf8String? right) => throw new PlatformNotSupportedException(); + public static implicit operator Utf8Span(Utf8String? value) => throw new PlatformNotSupportedException(); + + public int Length => throw new PlatformNotSupportedException(); + public Utf8String this[Range range] + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + throw new PlatformNotSupportedException(); + } + } + + public int CompareTo(Utf8String? other) + { + throw new PlatformNotSupportedException(); + } + + public int CompareTo(Utf8String? other, StringComparison comparison) + { + throw new PlatformNotSupportedException(); + } + + public override bool Equals(object? obj) + { + throw new PlatformNotSupportedException(); + } + + public bool Equals(Utf8String? value) + { + throw new PlatformNotSupportedException(); + } + + public bool Equals(Utf8String? value, StringComparison comparison) => throw new PlatformNotSupportedException(); + + public static bool Equals(Utf8String? left, Utf8String? right) + { + throw new PlatformNotSupportedException(); + } + + public static bool Equals(Utf8String? a, Utf8String? b, StringComparison comparison) + { + throw new PlatformNotSupportedException(); + } + + public override int GetHashCode() + { + throw new PlatformNotSupportedException(); + } + + public int GetHashCode(StringComparison comparison) + { + throw new PlatformNotSupportedException(); + } + + [EditorBrowsable(EditorBrowsableState.Never)] // for compiler use only + public ref readonly byte GetPinnableReference() => throw new PlatformNotSupportedException(); + + public bool IsAscii() + { + throw new PlatformNotSupportedException(); + } + + public static bool IsNullOrEmpty([NotNullWhen(false)] Utf8String? value) + { + throw new PlatformNotSupportedException(); + } + + public static bool IsNullOrWhiteSpace([NotNullWhen(false)] Utf8String? value) + { + throw new PlatformNotSupportedException(); + } + + public byte[] ToByteArray() => throw new PlatformNotSupportedException(); + + public override string ToString() + { + throw new PlatformNotSupportedException(); + } + } +}