Skip to content

Commit

Permalink
Switch to StaFact
Browse files Browse the repository at this point in the history
  • Loading branch information
RussKie committed Jun 3, 2020
1 parent 37eaa08 commit 0791c3c
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace System.Windows.Forms.Primitives.Tests.Interop.Ole32
[Collection("Sequential")]
public class IPictureTests
{
[Fact]
[StaFact]
public void GetIPictureFromCursor()
{
using MockCursor arrow = new MockCursor(CursorResourceId.IDC_ARROW);
Expand All @@ -26,7 +26,7 @@ public void GetIPictureFromCursor()
Assert.Equal(arrow.Size.Width, GdiHelper.HimetricToPixelX(picture.Width));
}

[Fact]
[StaFact]
public void GetIPictureFromImage()
{
using MockCursor arrow = new MockCursor(CursorResourceId.IDC_ARROW);
Expand All @@ -40,7 +40,7 @@ public void GetIPictureFromImage()
Assert.Equal(bitmap.Size.Width, GdiHelper.HimetricToPixelX(picture.Width));
}

[Fact]
[StaFact]
public void GetIPictureDispFromImage()
{
using Icon icon = SystemIcons.Question;
Expand All @@ -53,7 +53,7 @@ public void GetIPictureDispFromImage()
Assert.Equal(bitmap.Size.Width, GdiHelper.HimetricToPixelX(picture.Width));
}

[Fact]
[StaFact]
public void GetPictureFromIPicture()
{
using Icon icon = SystemIcons.Exclamation;
Expand All @@ -65,7 +65,7 @@ public void GetPictureFromIPicture()
Assert.Equal(bitmap.Size, image.Size);
}

[Fact]
[StaFact]
public void GetPictureFromIPictureDisp()
{
using Bitmap bitmap = new Bitmap(100, 200);
Expand Down

0 comments on commit 0791c3c

Please sign in to comment.