Skip to content

Commit

Permalink
Disable the flaky tests
Browse files Browse the repository at this point in the history
The issues are tracked in
* dotnet#2002
* dotnet#2003
* dotnet#2004
* dotnet#2005
  • Loading branch information
RussKie committed Oct 2, 2019
1 parent 3750c43 commit 4d12115
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using System.Drawing.Imaging;
using System.Reflection;
using System.Runtime.InteropServices;
using Moq;
using WinForms.Common.Tests;
using Xunit;
using static Interop;
Expand Down Expand Up @@ -977,7 +976,7 @@ public void AxHost_GetFontFromIFont_InvalidFont_ThrowsInvalidCastException()
Assert.Throws<InvalidCastException>(() => SubAxHost.GetFontFromIFont(new object()));
}

[Fact]
[Fact(Skip = "Unstable test, see: https://github.com/dotnet/winforms/issues/2002")]
public void AxHost_GetIFontDispFromFont_InvokeSimpleStyle_Roundtrips()
{
Font font = new Font(SystemFonts.StatusFont.FontFamily, 10);
Expand Down Expand Up @@ -1070,7 +1069,7 @@ public void AxHost_GetIFontDispFromFont_NullFont_ReturnsNull()
Assert.Null(SubAxHost.GetIFontDispFromFont(null));
}

[Fact]
[Fact(Skip = "Unstable test, see: https://github.com/dotnet/winforms/issues/2003")]
public void AxHost_GetIFontFromFont_InvokeSimpleStyle_Roundtrips()
{
Font font = new Font(SystemFonts.StatusFont.FontFamily, 10);
Expand Down Expand Up @@ -1182,7 +1181,7 @@ public void AxHost_GetIPictureDispFromPicture_InvokeBitmap_Roundtrips()
Assert.Equal(Color.FromArgb(unchecked((int)0xFF010203)), original.GetPixel(1, 2));
}

[Fact]
[Fact(Skip = "Unstable test, see: https://github.com/dotnet/winforms/issues/2005")]
public void AxHost_GetIPictureDispFromPicture_InvokeEnhancedMetafile_Roundtrips()
{
var original = new Metafile("bitmaps/milkmateya01.emf");
Expand Down Expand Up @@ -1248,7 +1247,7 @@ public void AxHost_GetIPictureFromPicture_InvokeBitmap_Roundtrips()
Assert.Equal(Color.FromArgb(unchecked((int)0xFF010203)), original.GetPixel(1, 2));
}

[Fact]
[Fact(Skip = "Unstable test, see: https://github.com/dotnet/winforms/issues/2004")]
public void AxHost_GetIPictureFromPicture_InvokeEnhancedMetafile_Roundtrips()
{
var original = new Metafile("bitmaps/milkmateya01.emf");
Expand Down

0 comments on commit 4d12115

Please sign in to comment.