Skip to content

Commit 81b9089

Browse files
committed
add assertion to testcase
1 parent 9b141e4 commit 81b9089

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/System.Windows.Forms.Design.Editors/tests/UnitTests/CollectionEditorTests.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public void CollectionEditor_Getters()
2727
Assert.True(underTest.CanRemove("some string"));
2828
Assert.True(underTest.CanRemove(1234));
2929
Assert.Equal("net.ComponentModel.CollectionEditor", underTest.GetHelpTopic());
30+
Assert.Equal("my string", underTest.GetItemDisplayText("my string"));
3031
}
3132

3233
private TestCollectionEditor GetNewEditor()
@@ -59,6 +60,11 @@ public string GetHelpTopic()
5960
{
6061
return base.HelpTopic;
6162
}
63+
64+
public string GetItemDisplayText(object value)
65+
{
66+
return base.GetDisplayText(value);
67+
}
6268
}
6369
}
6470
}

0 commit comments

Comments
 (0)