diff --git a/src/test/unit/System.Windows.Forms/System/Windows/Forms/ButtonTests.cs b/src/test/unit/System.Windows.Forms/System/Windows/Forms/ButtonTests.cs index ebba4e5b026..36dcaddc130 100644 --- a/src/test/unit/System.Windows.Forms/System/Windows/Forms/ButtonTests.cs +++ b/src/test/unit/System.Windows.Forms/System/Windows/Forms/ButtonTests.cs @@ -3674,6 +3674,14 @@ public void Button_WndProc_InvokeReflectCommandWithHandle_Success(FlatStyle flat [InlineData(0, 0, 255)] public void Button_Flat_ProperColor(int red, int green, int blue) => ButtonBase_FlatStyle_ProperFlatButtonColor(red, green, blue); + [Fact] + public void Ctor_Default_CreatesInstance() + { + ApplicableToButtonAttribute attr = new(); + attr.Should().NotBeNull(); + attr.Should().BeAssignableTo(); + } + protected override ButtonBase CreateButton() => new SubButton(); private class SubButton : Button