using Xunit;
-[assembly: ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)] // flaky tests
public class AdvancedValueComposition
{
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void RepeatedContainerUse()
{
var container = ContainerFactory.Create();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void FunctionsFieldsAndProperties()
{
Consumer c;
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void FunctionsFieldsAndProperties2()
{
Consumer c;
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ImportIntoDerivationOfExportException()
{
var container = ContainerFactory.Create();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ImportIntoDerivationOfExportsException()
{
var container = ContainerFactory.Create();
public class AllowNonPublicCompositionTests
{
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void PublicFromPublic()
{
var container = ContainerFactory.Create();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void PublicToSelf()
{
var container = ContainerFactory.Create();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void PublicFromPrivate()
{
var container = ContainerFactory.Create();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void PrivateFromPublic()
{
var container = ContainerFactory.Create();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void PrivateToSelf()
{
var container = ContainerFactory.Create();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void PrivateData()
{
var container = ContainerFactory.Create();
namespace System.ComponentModel.Composition.AttributedModel
{
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public class AttributedModelCompositionTests
{
[Fact]
public class AttributedModelDiscoveryTests
{
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void CreatePartDefinition_TypeWithExports_ShouldHaveMultipleExports()
{
var definition = CreateDefinition(typeof(PublicComponentWithPublicExports));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void CreatePartDefinition_TypeWithImports_ShouldHaveMultipleImports()
{
var definition = CreateDefinition(typeof(PublicImportsExpectingPublicExports));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void CreatePartDefinition_OneMarkedConstructorsAsPartTypeArgument_ShouldSetConstructorToMarked()
{
var definition = CreateDefinition(typeof(SimpleConstructorInjectedObject));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void CreatePartDefinition_OneDefaultConstructorAsPartTypeArgument_ShouldSetConstructorToDefault()
{
var definition = CreateDefinition(typeof(PublicComponentWithPublicExports));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void CreatePartDefinition_OneMarkedAndOneDefaultConstructorsAsPartTypeArgument_ShouldSetConstructorToMarked()
{
var definition = CreateDefinition(typeof(ClassWithOneMarkedAndOneDefaultConstructor));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ImportsSatisfiedOnComponentWithoutImports()
{
CompositionContainer container = ContainerFactory.CreateWithAttributedCatalog(typeof(PartWithoutImports));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ImportCompletedTest()
{
var container = ContainerFactory.Create();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ImportCompletedWithRecomposing()
{
var container = ContainerFactory.Create();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ImportCompletedAddPartAndBindComponent()
{
var container = ContainerFactory.Create();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void Imports()
{
ComposablePartDefinition part1 = typeof(PartImportingContract1).AsPart();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void Imports_CardinalityIgnored_WhenNotSpecified()
{
ComposablePartDefinition part1 = typeof(PartImportingContract1).AsPart();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void Imports_CardinalityNotIgnored_WhenSpecified()
{
ComposablePartDefinition part1 = typeof(PartImportingContract1).AsPart();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ImportsGeneric()
{
ComposablePartDefinition part1 = typeof(PartImportingContract1).AsPart();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ImportsGeneric_CardinalityIgnored_WhenNotSpecified()
{
ComposablePartDefinition part1 = typeof(PartImportingContract1).AsPart();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ImportsGeneric_CardinalityNotIgnored_WhenSpecified()
{
ComposablePartDefinition part1 = typeof(PartImportingContract1).AsPart();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void NoResolverExceptionTest()
{
var container = ContainerFactory.Create();
namespace System.ComponentModel.Composition
{
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public class CompositionContainerCollectionTests
{
public class SupportedImportCollectionAssignments<T>
namespace System.ComponentModel.Composition
{
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public class CompositionContainerImportTests
{
// Exporting collectin values is not supported
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void GetExportsOfTTMetadataView1_TypeAsMetadataViewTypeArgument_IsUsedAsMetadataConstraint()
{
var metadata = new Dictionary<string, object>();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void GetExportsOfTTMetadataView2_TypeAsMetadataViewTypeArgument_IsUsedAsMetadataConstraint()
{
var metadata = new Dictionary<string, object>();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void TryComposeSimple()
{
var container = CreateCompositionContainer();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void TryComposeSimpleFail()
{
var container = CreateCompositionContainer();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ComposeDisposableChildContainer()
{
var outerContainer = CreateCompositionContainer();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
[Trait("Type", "Integration")]
public void OptionalImportsOfValueTypeBoundToDefaultValueShouldNotAffectAvailableValues()
{
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
[Trait("Type", "Integration")]
public void OptionalImportsOfNullableValueTypeBoundToDefaultValueShouldNotAffectAvailableValues()
{
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
[Trait("Type", "Integration")]
public void OptionalImportsOfReferenceTypeBoundToDefaultValueShouldNotAffectAvailableValues()
{
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void TryGetExportedValueWhileLockedForNotify()
{
var container = CreateCompositionContainer();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
[Trait("Type", "Integration")]
public void AddPartSimple()
{
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
[Trait("Type", "Integration")]
public void AddPart()
{
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ComposeReentrantChildContainerDisposed()
{
var container = CreateCompositionContainer();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ComposeSimple()
{
var container = CreateCompositionContainer();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ComposeSimpleFail()
{
var container = CreateCompositionContainer();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ExceptionDuringNotify()
{
var container = CreateCompositionContainer();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void NeutralComposeWhileNotified()
{
var container = CreateCompositionContainer();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ThreadSafeCompositionContainer()
{
TypeCatalog catalog = new TypeCatalog(typeof(SimpleExporter));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ThreadSafeCompositionOptionsCompositionContainer()
{
TypeCatalog catalog = new TypeCatalog(typeof(SimpleExporter));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void DisableSilentRejectionCompositionOptionsCompositionContainer()
{
TypeCatalog catalog = new TypeCatalog(typeof(SimpleExporter));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void DisableSilentRejectionThreadSafeCompositionOptionsCompositionContainer()
{
TypeCatalog catalog = new TypeCatalog(typeof(SimpleExporter));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void TestExportedValueCachesNullValue()
{
var container = ContainerFactory.Create();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void TestExportedValueUsingWhereClause_ExportSuccessful()
{
CompositionContainer container = new CompositionContainer(new TypeCatalog(typeof(MefCollection<,>)));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
[Description("Verifies CompositionServices.SatisfyImportsOne with Scoped ExportFactories")]
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()
{
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
[Description("Verifies CompositionServices.SatisfyImportsOne with Scoped ExportFactories")]
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()
{
public class DynamicMetadata : IDisposable
{
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SimpleAttachment()
{
MetadataStore.Container = new CompositionContainer();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void LocalContainer()
{
var container1 = new CompositionContainer();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void DualContainers()
{
var container1 = new CompositionContainer();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ExportIndexers_ShouldThrowSomething()
{
var con = new CompositionContainer(
namespace Tests.Integration
{
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public class ExportFactoryTests
{
public interface IId
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SelfExportWithClosedGenericImportTest()
{
TypeCatalog catalog = new TypeCatalog(typeof(SelfImport<>), typeof(OpenGenericPartWithClosedGenericImport<>));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void PropertyExportTest()
{
TypeCatalog catalog = new TypeCatalog(typeof(PropertyExport<,>));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void PropertyExportWithContractInferredTest()
{
TypeCatalog catalog = new TypeCatalog(typeof(PropertyExportWithContractInferred<,>));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SelfExportWithPropertyImportTest()
{
TypeCatalog catalog = new TypeCatalog(typeof(SelfExportWithPropertyImport<,>), typeof(SelfImport<,>));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SelfExportWithLazyPropertyImportTest()
{
TypeCatalog catalog = new TypeCatalog(typeof(SelfExportWithLazyPropertyImport<,>), typeof(SelfImport<,>));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SelfExportWithNakedLazyPropertyImportTest()
{
TypeCatalog catalog = new TypeCatalog(typeof(SelfExportWithNakedLazyPropertyImport<>), typeof(Foo));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SelfExportWithExportFactoryPropertyImportTest()
{
TypeCatalog catalog = new TypeCatalog(typeof(SelfExportWithExportFactoryPropertyImport<,>), typeof(SelfImport<,>));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SelfExportWithNakedExportFactoryPropertyImportTest()
{
TypeCatalog catalog = new TypeCatalog(typeof(SelfExportWithNakedExportFactoryPropertyImport<>), typeof(Foo));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SelfExportWithExportFactoryParameterImportTest()
{
TypeCatalog catalog = new TypeCatalog(typeof(SelfExportWithExportFactoryParameterImport<,>), typeof(SelfImport<,>));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SelfExportWithCollectionPropertyImportTest()
{
TypeCatalog catalog = new TypeCatalog(typeof(SelfExportWithCollectionPropertyImport<,>), typeof(SelfImport<,>));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SelfExportWithLazyCollectionPropertyImportTest()
{
TypeCatalog catalog = new TypeCatalog(typeof(SelfExportWithLazyCollectionPropertyImport<,>), typeof(SelfImport<,>));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SelfExportWithPropertyImportWithContractInferredTest()
{
TypeCatalog catalog = new TypeCatalog(typeof(SelfExportWithPropertyImportWithContractInferred<,>), typeof(SelfImport<,>));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SelfExportWithParameterImportTest()
{
TypeCatalog catalog = new TypeCatalog(typeof(SelfExportWithParameterImport<,>), typeof(SelfImport<,>));
}
[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));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SingletonBehavior()
{
TypeCatalog catalog = new TypeCatalog(typeof(SingletonExport<,>));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void PartWithExportParametersInReverseOrder()
{
TypeCatalog catalog = new TypeCatalog(typeof(PropertyExportWithChangedParameterOrder<,>));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void RemovingAndReAddingMultipleDefinitionsFromCatalog()
{
var fixedParts = new TypeCatalog(typeof(RootMultipleImporter), typeof(ExportedService));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void AddPart_ReturnedComposablePart_ExportsArrayWithNullElementAsExportsArgumentToSetImports_ShouldThrowArgument()
{
CompositionBatch batch = new CompositionBatch();
}
[Fact]
+ [PlatformSpecific(~TestPlatforms.Browser)]
public void LoadedFiles_ContainsMultipleDllsAndSomeNonDll_ShouldOnlyContainDlls()
{
string directoryPath = GetTemporaryDirectory();
}
[Fact]
+ [PlatformSpecific(~TestPlatforms.Browser)]
public void LoadedFiles_ContainsMultipleDllsAndSomeNonDll_ShouldOnlyContainDlls()
{
// Add one text file
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void GetExportsWithGenerics()
{
var originalCatalog = new TypeCatalog(typeof(GenericExporter<,>), typeof(Exporter11), typeof(Exporter22));
namespace System.ComponentModel.Composition.Hosting
{
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public class FilteredCatalogTransitiveClosureTests
{
public interface IContract1 { }
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void Imports()
{
ComposablePartDefinition part1 = typeof(PartImportingContract1).AsPart();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void Imports_CardinalityIgnored_WhenNotSpecified()
{
ComposablePartDefinition part1 = typeof(PartImportingContract1).AsPart();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void Imports_CardinalityNotIgnored_WhenSpecified()
{
ComposablePartDefinition part1 = typeof(PartImportingContract1).AsPart();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ImportIndexers_ShouldThrowSomething()
{
var con = new CompositionContainer(
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void InvalidDuplicateMetadataOnMember_ShouldThrow()
{
var part = AttributedModelServices.CreatePart(new ClassWithInvalidDuplicateMetadataOnMember());
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ValidDuplicateMetadataOnMember_ShouldDiscoverAllMetadata()
{
var container = ContainerFactory.Create();
}
[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));
}
[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;
}
[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;
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SimpleComposition()
{
var catalog = new TypeCatalog(typeof(FooImpl), typeof(FooImpl2), typeof(FooImpl2));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void OnComposed_MissingPostImportsOnInstance_ShouldThrowComposition()
{
var part = CreatePart(new MySharedPartExport());
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void OnComposed_ProperlyComposed_ShouldSucceed()
{
var import = new TrivialImporter();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void OnComposed_UnhandledExceptionThrowInOnImportsSatisfied_ShouldThrowComposablePart()
{
var part = CreatePart(typeof(ExceptionDuringINotifyImport));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SetImport_WhenDisposed_ShouldThrowObjectDisposed()
{
var part = CreateDefaultDisposablePart();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SetImport_NullAsExportsArgument_ShouldThrowArgumentNull()
{
var part = CreatePart(typeof(MySharedPartExport));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SetImport_ExportsArrayWithNullElementAsExportsArgument_ShouldThrowArgument()
{
var part = CreatePart(typeof(MySharedPartExport));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SetImport_SetNonRecomposableDefinitionAsDefinitionArgumentAfterOnComposed_ShouldThrowInvalidOperation()
{
var part = CreatePartWithNonRecomposableImport();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SetImport_ZeroOrOneDefinitionAsDefinitionArgumentAndTwoExportsAsExportsArgument_ShouldThrowArgument()
{
var part = CreatePartWithZeroOrOneImport();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SetImport_ExactlyOneDefinitionAsDefinitionArgumentAndTwoExportsAsExportsArgument_ShouldThrowArgument()
{
var part = CreatePartWithExactlyOneImport();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SetImport_ExactlyOneDefinitionAsDefinitionArgumentAndEmptyExportsAsExportsArgument_ShouldThrowArgument()
{
var part = CreatePartWithExactlyOneImport();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SetImport_WrongTypeExportGiven_ShouldThrowComposablePart()
{
var part = CreatePart(new MySharedPartExport());
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SetImport_SetPostValueAndSetAgainOnInstance_ShouldSetProperty()
{
var import = new MySharedPartExport();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void GetExportedValue_WhenDisposed_ShouldThrowObjectDisposed()
{
var part = CreateDefaultDisposablePart();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void GetExportedValue_MissingPrerequisiteImport_ShouldThrowInvalidOperation()
{
var part = CreatePart(typeof(SimpleConstructorInjectedObject));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void GetExportedValue_GetObjectAfterSetPreImport_ShouldGetValue()
{
var part = CreatePart(typeof(SimpleConstructorInjectedObject));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void GetExportedValue_GetObjectAfterSetPostImport_ShouldGetValue()
{
var part = CreatePart(typeof(MySharedPartExport));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void GetExportedValue_CallMultipleTimes_ShouldReturnSame()
{
var part = CreatePart(typeof(MySharedPartExport));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void GetExportedValue_OptionalPostNotGiven_ShouldReturnValidObject()
{
var part = CreatePart(typeof(ClassWithOptionalPostImport));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void GetExportedValue_OptionalPreNotGiven_ShouldReturnValidObject()
{
var part = CreatePart(typeof(ClassWithOptionalPreImport));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void GetExportedObjectAlwaysReturnsSameReference_ForProperty()
{
var cp = CreatePart(new PropertyExporter());
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void GetExportedObjectAlwaysReturnsSameReference_ForField()
{
var exporter = new FieldExporter();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ImportDefinitions_ImportWithCustomAttributeImports()
{
var part = CreatePart(typeof(ImportWithCustomImport));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ImportDefinitions_ImportManyWithCustomAttributeImportManys()
{
var part = CreatePart(typeof(ImportManyWithCustomImportMany));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ImportDefinitions_ImportingConstructorWithCustomAttributeImportingConstructors()
{
var part = CreatePart(typeof(ImportingConstructorWithCustomImportingConstructor));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ImportDefinitions_ImportingConstructorWithCustomAttributeImportingConstructorsWithAllowMultiple_ShouldNotThrowInvalidOperation()
{
var part = CreatePart(typeof(ImportingConstructorWithCustomImportingConstructorAllowMultiple));
namespace System.ComponentModel.Composition
{
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public class ScopeExportFactoryTests
{
public interface IFooContract
}
}
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public class ScopeExportFactoryWithPublicSurface
{
[Export] public class ClassA { }
}
}
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public class ScopeFactoryAutoResolveFromAncestorScope
{
[Export] public class Root { }
}
}
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public class DeeplyNestedCatalog
{
[Export]
}
}
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public class LocalSharedNonLocalInSameContainer
{
[Export]
}
}
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public class ScopeBridgingAdaptersConstructorInjection
{
[Export]
}
}
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public class ScopeBridgingAdaptersImportExportProperty
{
[Export]
}
}
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public class SelfExportFromExportFactory
{
[Export]
namespace System.ComponentModel.Composition
{
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public class ScopedCompositionServiceTests
{
[Export]
#endregion
}
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public class AdaptingCollectionTests
{
public interface IContract { }
namespace System.ComponentModel.Composition
{
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public class CatalogFilteringTests
{
[Fact]
//
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void APrerequisiteDependsOnBPrerequisite_ShouldThrowComposition()
{
AssertCycle(typeof(APrerequisiteDependsOnBPrerequisite),
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void APrerequisiteDependsOnBPost_ShouldThrowComposition()
{
AssertCycle(typeof(APrerequisiteDependsOnBPost),
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void APostDependsOnBPrerequisite_ShouldThrowComposition()
{
AssertCycle(typeof(APostDependsOnBPrerequisite),
public class ConstructorInjectionTests
{
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SimpleConstructorInjection()
{
var container = ContainerFactory.Create();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ImportMany_ConstructorParameter_OnNonAssiganbleType_ShouldThrowCompositionException()
{
var container = ContainerFactory.CreateWithAttributedCatalog(typeof(InvalidImportManyCI));
namespace Tests.Integration
{
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public class DelayLoadingTests
{
[Fact]
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void CustomExportedDelegate_ShouldWork()
{
var container = ContainerFactory.CreateWithAttributedCatalog(
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void Import_PrivateOnClass_ShouldSetImport()
{
var container = ContainerFactory.CreateWithAttributedCatalog(typeof(BaseWithNonPublicImportAndExport));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void Import_PrivateOnBase_ShouldSetImport()
{
var container = ContainerFactory.CreateWithAttributedCatalog(typeof(DerivedBaseWithNonPublicImportAndExport));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void Import_InheritImportFromInterface_ShouldExposeImport()
{
var container = ContainerFactory.CreateWithAttributedCatalog(
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void Export_BaseAndDerivedShouldAmountInTwoExports()
{
var container = ContainerFactory.CreateWithAttributedCatalog(
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void Export_Plugin1()
{
var container = ContainerFactory.CreateWithAttributedCatalog(
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void Export_Plugin2()
{
var container = ContainerFactory.CreateWithAttributedCatalog(
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void Export_Plugin3()
{
var container = ContainerFactory.CreateWithAttributedCatalog(
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void Export_Plugin4()
{
var container = ContainerFactory.CreateWithAttributedCatalog(
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void Export_MyPlugin()
{
var container = ContainerFactory.CreateWithAttributedCatalog(
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void TestInterfaces()
{
var container = ContainerFactory.CreateWithAttributedCatalog(
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void Import_VirtualPropertyOverrideWithSameContract_ShouldSucceed()
{
var container = ContainerFactory.Create();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void Import_VirtualPropertyOverrideWithDifferentContract_ShouldSucceed()
{
var container = ContainerFactory.Create();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void DiscoverAddinsWithCombinedCustomExportAndMetadataAttribute()
{
var container = ContainerFactory.CreateWithAttributedCatalog(typeof(Addin1), typeof(Addin2), typeof(Addin3));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void Test_CustomInheritedExportAttribute_OnInterface()
{
var container = ContainerFactory.CreateWithAttributedCatalog(typeof(UsesCustomInheritedExportOnInterface));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void Test_CustomInheritedExportAttribute_OnBaseClass()
{
var container = ContainerFactory.CreateWithAttributedCatalog(typeof(DerivedFromBaseWithCustomInheritedExport));
public class FooWithTwoFoos : IFoo1, IFoo2 { }
[Fact]
+ [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void InheritedExport_TwoInterfaces()
{
var container = ContainerFactory.CreateWithAttributedCatalog(typeof(FooWithTwoFoos));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void PartAddedViaAddExportedValue_ShouldNotBeDisposedWithContainer()
{
var container = new CompositionContainer();
}
[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
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void AnyPart_Disposable_ShouldNotBeCollected()
{
var catalog = new TypeCatalog(typeof(AnyPartDisposable));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void AnyPart_Disposable_ShouldBeDisposedWithContainer()
{
var catalog = new TypeCatalog(typeof(AnyPartDisposable));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void AnyPart_RecomposabeImport_ShouldNotBeCollected()
{
var catalog = new TypeCatalog(typeof(AnyPartRecomposable));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void AnyPart_DisposableRecomposabeImport_ShouldNotBeCollected()
{
var catalog = new TypeCatalog(typeof(AnyPartDisposableRecomposable));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SharedPart_Disposable_ShouldNotBeCollected()
{
var catalog = new TypeCatalog(typeof(SharedPartDisposable));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SharedPart_Disposable_ShouldBeDisposedWithContainer()
{
var catalog = new TypeCatalog(typeof(SharedPartDisposable));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SharedPart_RecomposabeImport_ShouldNotBeCollected()
{
var catalog = new TypeCatalog(typeof(SharedPartRecomposable));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void SharedPart_DisposableRecomposabeImport_ShouldNotBeCollected()
{
var catalog = new TypeCatalog(typeof(SharedPartDisposableRecomposable));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void NonSharedPart_Disposable_ShouldNotBeCollected()
{
var catalog = new TypeCatalog(typeof(NonSharedPartDisposable));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void NonSharedPart_Disposable_ShouldBeDisposedWithContainer()
{
var catalog = new TypeCatalog(typeof(NonSharedPartDisposable));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void NonSharedPart_RecomposableImport_WithReference_ShouldNotBeCollected()
{
var catalog = new TypeCatalog(typeof(NonSharedPartRecomposable));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void NonSharedPart_DisposableRecomposabeImport_NoReference_ShouldNotBeCollected()
{
var catalog = new TypeCatalog(typeof(NonSharedPartDisposableRecomposable));
}
[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
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void GetReleaseExport_SharedRoot_ShouldNotDisposeChain()
{
var container = GetContainer();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void AddRemovePart_SharedRoot_ShouldNotDisposeChain()
{
var container = GetContainer();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ContainerDispose_SharedRoot_ShouldDisposeChain()
{
var container = GetContainer();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void GetReleaseExport_NonSharedRoot_ShouldDisposeChain()
{
var container = GetContainer();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void GetReleaseExport_NonSharedRoot_ShouldDisposeChain_WithMetadata()
{
var container = GetContainer();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ReleaseExports_ShouldDispose_NonSharedParts()
{
var container = GetContainer();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void AddRemovePart_NonSharedRoot_ShouldDisposeChain()
{
var container = GetContainer();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ContainerDispose_NonSharedRoot_ShouldNotDisposeChain()
{
var container = GetContainer();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void GetReleaseExport_NonSharedPart_ShouldNotRecomposeAfterRelease()
{
var catalog = new TypeCatalog(typeof(NonSharedPartRecomposable));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void GetExportManualDisposeThenRecompose_NonSharedDisposableRecomposablePart_ShouldThrowComposition()
{
var catalog = new TypeCatalog(typeof(NonSharedPartDisposableRecomposable));
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void RecomposeCausesOldImportedValuesToBeDisposed()
{
var cat = new AggregateCatalog();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ChildContainerGetReleaseExport_NonSharedRoot_ShouldDisposeChain()
{
var child = CreateParentChildContainerWithNonSharedImporter();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ChildContainerAddRemovePart_NonSharedRoot_ShouldDisposeChain()
{
var child = CreateParentChildContainerWithNonSharedImporter();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ChildContainerAddRemovePart_NonSharedRoot_ShouldNotDisposeChain()
{
var child = CreateParentChildContainerWithNonSharedImporter();
}
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public void ReleaseExports_ShouldWorkWithExportCollection()
{
var container = GetContainer();
namespace Tests.Integration
{
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public class RecompositionTests
{
public class Class_OptIn_AllowRecompositionImports
namespace Tests.Integration
{
- [ActiveIssue("https://github.com/mono/mono/issues/16417", TestRuntimes.Mono)]
public class RejectionTests
{
public interface IExtension
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.
}
[Theory]
- [ActiveIssue("https://github.com/mono/mono/issues/14956", TestRuntimes.Mono)]
[MemberData(nameof(AllExecutionModes_Multiple))]
public static void WithExecutionMode_Multiple(ParallelExecutionMode first, ParallelExecutionMode second)
{
#region Tests for constructors using unsupported types
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/15190", TestRuntimes.Mono)]
public void ConstructorWithUnsupportedTypes_Guid() => TestConstructorWithUnsupportedTypes<Guid>();
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/15190", TestRuntimes.Mono)]
public void ConstructorWithUnsupportedTypes_DateTime() => TestConstructorWithUnsupportedTypes<DateTime>();
[Fact]
- [ActiveIssue("https://github.com/mono/mono/issues/15190", TestRuntimes.Mono)]
public void ConstructorWithUnsupportedTypes_Char() => TestConstructorWithUnsupportedTypes<Char>();
private void TestConstructorWithUnsupportedTypes<T>() where T : struct
[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(() =>
[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(() =>
}
[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");
}
[Fact]
+ [ActiveIssue("https://github.com/mono/mono/issues/15029", TestRuntimes.Mono)]
public void GetMethod()
{
MethodInfo[] methods = typeof(MembersClass).GetTypeInfo().GetMethods();
}
[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)
}
[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)]