Skip to content

Commit 77edcb2

Browse files
committed
Add test for GetSerializer failure when serializers direct access is used. serializers is only used in a session and only exists after the first call.
1 parent cc494b2 commit 77edcb2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/System.Windows.Forms.Design/tests/UnitTests/System/ComponentModel/Design/Serialization/DesignerSerializationManagerTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,6 +1394,9 @@ public void DesignerSerializationManager_IDesignerSerializationManagerGetSeriali
13941394

13951395
// Call again.
13961396
Assert.Null(iManager.GetSerializer(objectType, typeof(int)));
1397+
1398+
// Call unrelated object type
1399+
Assert.Null(iManager.GetSerializer(typeof(object), typeof(int)));
13971400
}
13981401

13991402
[Fact]

0 commit comments

Comments
 (0)