Skip to content

Commit 8c56163

Browse files
Update src/libraries/System.ComponentModel.TypeConverter/tests/TypeDescriptorTests.cs
Co-authored-by: Copilot <[email protected]>
1 parent 78c71fe commit 8c56163

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libraries/System.ComponentModel.TypeConverter/tests/TypeDescriptorTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,8 +1588,7 @@ public static void TypeDescriptor_DoesNotKeepUnloadableTypes()
15881588
Type? collectibleType = assembly.GetType("UnloadableTestTypes.SimpleType");
15891589
Assert.NotNull(collectibleType);
15901590
Type? collectibleAttributeType = assembly.GetType("UnloadableTestTypes.SimpleTypeAttribute");
1591-
Assert.NotNull(collectibleType);
1592-
Attribute? collectibleAttribute = collectibleType.GetCustomAttribute(collectibleAttributeType);
1591+
Assert.NotNull(collectibleAttributeType);
15931592
Assert.NotNull(collectibleAttribute);
15941593

15951594
// Cache the type's cachable entities

0 commit comments

Comments
 (0)