Skip to content

Commit

Permalink
Updaetd to use target type new
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Qiao committed Mar 28, 2024
1 parent 953b86a commit 833c99b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,15 +305,15 @@ public void DateTimePicker_BackgroundImageChangedEvent_Raised_Success()
};

control.BackgroundImageChanged += handler;
using (Bitmap bmp = new Bitmap(10, 10))
using (Bitmap bmp = new(10, 10))
{
control.BackgroundImage = bmp;
}

callCount.Should().Be(1);

control.BackgroundImageChanged -= handler;
using (Bitmap bmp = new Bitmap(20, 20))
using (Bitmap bmp = new(20, 20))
{
control.BackgroundImage = bmp;
}
Expand Down

0 comments on commit 833c99b

Please sign in to comment.