From e4f5faad9e56d3ce2e98a122b42732110d41a30a Mon Sep 17 00:00:00 2001 From: Ryan Lucia Date: Fri, 25 Sep 2020 17:35:45 -0400 Subject: [PATCH] Add Type.Namespace tests with array types, disable on Mono (#42634) We probably have more issues lurking in here since a lot of these reflection APIs don't seem to test array types, but this particular one was in response to a customer bug report. --- src/libraries/System.Reflection/tests/TypeInfoTests.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libraries/System.Reflection/tests/TypeInfoTests.cs b/src/libraries/System.Reflection/tests/TypeInfoTests.cs index abd66e7..8cd5af6 100644 --- a/src/libraries/System.Reflection/tests/TypeInfoTests.cs +++ b/src/libraries/System.Reflection/tests/TypeInfoTests.cs @@ -1407,6 +1407,9 @@ namespace System.Reflection.Tests [InlineData(typeof(PublicEnum), "System.Reflection.Tests")] [InlineData(typeof(TI_BaseClass.PublicNestedClass1), "System.Reflection.Tests")] [InlineData(typeof(int), "System")] + [InlineData(typeof(TI_BaseClass[]), "System.Reflection.Tests")] + [InlineData(typeof(TI_BaseClass.PublicNestedClass1[]), "System.Reflection.Tests")] + [ActiveIssue("https://github.com/dotnet/runtime/issues/42633", TestRuntimes.Mono)] public void Namespace(Type type, string expected) { Assert.Equal(expected, type.GetTypeInfo().Namespace); -- 2.7.4