Skip to content

Commit 34d9ba7

Browse files
committed
Handle FeedBacks
1 parent 30c9c31 commit 34d9ba7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/System.Windows.Forms.Design/tests/UnitTests/System/Windows/Forms/Design/ListViewGroupCollectionEditorTests.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ public class ListViewGroupCollectionEditorTests
1111
{
1212
private readonly Mock<ListViewGroupCollectionEditor> _mockEditor;
1313

14-
public ListViewGroupCollectionEditorTests()
15-
{
16-
_mockEditor = new(typeof(ListViewGroup)) { CallBase = true };
17-
}
14+
public ListViewGroupCollectionEditorTests() =>
15+
_mockEditor = new(typeof(ListViewGroup)) { CallBase = true };
1816

1917
[Fact]
2018
public void Constructor_InitializesCollectionType()
@@ -28,7 +26,7 @@ public void Constructor_InitializesCollectionType()
2826
actualType.Should().Be(expectedType);
2927
}
3028

31-
[Fact]
29+
[WinFormsFact]
3230
public void EditValue_SetsAndResetsEditValue()
3331
{
3432
Mock<ITypeDescriptorContext> mockContext = new();
@@ -53,7 +51,7 @@ public void CreateInstance_CreatesListViewGroupWithUniqueName()
5351

5452
ListViewGroup? result = _mockEditor.Object.TestAccessor().Dynamic.CreateInstance(typeof(ListViewGroup)) as ListViewGroup;
5553

56-
result?.Name.Should().NotBeNull();
54+
result?.Name.Should().BeOfType<string>();
5755
result?.Name.Should().StartWith("ListViewGroup");
5856
result?.GetType().Should().Be(typeof(ListViewGroup));
5957
}

0 commit comments

Comments
 (0)