Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RussKie committed Jun 3, 2020
1 parent 3dbb158 commit 0151ba2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace System.Windows.Forms.Primitives.Tests.Interop.Oleaut32
[Collection("Sequential")]
public partial class IDispatchTests
{
[WinFormsFact]
[StaFact]
public unsafe void IDispatch_GetIDsOfNames_Invoke_Success()
{
using var image = new Bitmap(16, 32);
Expand All @@ -32,7 +32,7 @@ public unsafe void IDispatch_GetIDsOfNames_Invoke_Success()
}
}

[WinFormsFact]
[StaFact]
public unsafe void IDispatch_GetTypeInfo_Invoke_Success()
{
using var image = new Bitmap(16, 16);
Expand All @@ -46,7 +46,7 @@ public unsafe void IDispatch_GetTypeInfo_Invoke_Success()
System.Runtime.InteropServices.Marshal.ReleaseComObject(typeInfo);
}

[WinFormsFact]
[StaFact]
public unsafe void IDispatch_GetTypeInfoCount_Invoke_Success()
{
using var image = new Bitmap(16, 16);
Expand All @@ -59,7 +59,7 @@ public unsafe void IDispatch_GetTypeInfoCount_Invoke_Success()
Assert.Equal(1u, ctInfo);
}

[WinFormsFact]
[StaFact]
public unsafe void IDispatch_Invoke_Invoke_Success()
{
using var image = new Bitmap(16, 32);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace System.Windows.Forms.Primitives.Tests.Interop.Oleaut32
[Collection("Sequential")]
public class ITypeInfoTests
{
[WinFormsFact]
[StaFact]
public unsafe void ITypeInfo_AddressOfMember_Invoke_Success()
{
using var image = new Bitmap(16, 32);
Expand All @@ -31,7 +31,7 @@ public unsafe void ITypeInfo_AddressOfMember_Invoke_Success()
Assert.Equal(IntPtr.Zero, pv);
}

[WinFormsFact]
[StaFact]
public unsafe void ITypeInfo_CreateInstance_Invoke_Success()
{
using var image = new Bitmap(16, 32);
Expand All @@ -49,7 +49,7 @@ public unsafe void ITypeInfo_CreateInstance_Invoke_Success()
Assert.Equal(IntPtr.Zero, pvObj);
}

[WinFormsFact]
[StaFact]
public unsafe void ITypeInfo_GetContainingTypeLib_Invoke_Success()
{
using var image = new Bitmap(16, 32);
Expand All @@ -75,7 +75,7 @@ public unsafe void ITypeInfo_GetContainingTypeLib_Invoke_Success()
}
}

[WinFormsFact]
[StaFact]
public unsafe void ITypeInfo_GetDllEntry_Invoke_Success()
{
using var image = new Bitmap(16, 32);
Expand All @@ -96,7 +96,7 @@ public unsafe void ITypeInfo_GetDllEntry_Invoke_Success()
Assert.Equal(0u, wOrdinal);
}

[WinFormsFact]
[StaFact]
public unsafe void ITypeInfo_GetDocumentation_Invoke_Success()
{
using var image = new Bitmap(16, 32);
Expand All @@ -119,7 +119,7 @@ public unsafe void ITypeInfo_GetDocumentation_Invoke_Success()
Assert.Empty(helpFile.String.ToString());
}

[WinFormsFact]
[StaFact]
public unsafe void ITypeInfo_GetFuncDesc_Invoke_Success()
{
using var image = new Bitmap(16, 32);
Expand Down Expand Up @@ -156,7 +156,7 @@ public unsafe void ITypeInfo_GetFuncDesc_Invoke_Success()
}
}

[WinFormsFact]
[StaFact]
public unsafe void ITypeInfo_GetIDsOfNames_Invoke_Success()
{
using var image = new Bitmap(16, 32);
Expand All @@ -178,7 +178,7 @@ public unsafe void ITypeInfo_GetIDsOfNames_Invoke_Success()
}
}

[WinFormsFact]
[StaFact]
public unsafe void ITypeInfo_GetImplTypeFlags_Invoke_Success()
{
using var image = new Bitmap(16, 32);
Expand All @@ -195,7 +195,7 @@ public unsafe void ITypeInfo_GetImplTypeFlags_Invoke_Success()
Assert.NotEqual(IMPLTYPEFLAG.FDEFAULT, implTypeFlags);
}

[WinFormsFact]
[StaFact]
public unsafe void ITypeInfo_GetMops_Invoke_Success()
{
using var image = new Bitmap(16, 32);
Expand All @@ -212,7 +212,7 @@ public unsafe void ITypeInfo_GetMops_Invoke_Success()
Assert.Empty(mops.String.ToString());
}

[WinFormsFact]
[StaFact]
public unsafe void ITypeInfo_GetNames_Invoke_Success()
{
using var image = new Bitmap(16, 32);
Expand All @@ -237,7 +237,7 @@ public unsafe void ITypeInfo_GetNames_Invoke_Success()
rgszNames[1].Dispose();
}

[WinFormsFact]
[StaFact]
public unsafe void ITypeInfo_GetRefTypeInfo_Invoke_Success()
{
using var image = new Bitmap(16, 32);
Expand All @@ -260,7 +260,7 @@ public unsafe void ITypeInfo_GetRefTypeInfo_Invoke_Success()
Assert.NotNull(refTypeInfo);
}

[WinFormsFact]
[StaFact]
public unsafe void ITypeInfo_GetRefTypeOfImplType_Invoke_Success()
{
using var image = new Bitmap(16, 32);
Expand All @@ -277,7 +277,7 @@ public unsafe void ITypeInfo_GetRefTypeOfImplType_Invoke_Success()
Assert.NotEqual(0u, refType);
}

[WinFormsFact]
[StaFact]
public unsafe void ITypeInfo_GetTypeAttr_Invoke_Success()
{
using var image = new Bitmap(16, 32);
Expand Down Expand Up @@ -319,7 +319,7 @@ public unsafe void ITypeInfo_GetTypeAttr_Invoke_Success()
}
}

[WinFormsFact]
[StaFact]
public unsafe void ITypeInfo_GetTypeComp_Invoke_Success()
{
using var image = new Bitmap(16, 32);
Expand All @@ -343,7 +343,7 @@ public unsafe void ITypeInfo_GetTypeComp_Invoke_Success()
}
}

[WinFormsFact]
[StaFact]
public unsafe void ITypeInfo_GetVarDesc_Invoke_Success()
{
using var image = new Bitmap(16, 32);
Expand Down Expand Up @@ -375,7 +375,7 @@ public unsafe void ITypeInfo_GetVarDesc_Invoke_Success()
}
}

[WinFormsFact]
[StaFact]
public unsafe void ITypeInfo_Invoke_Invoke_Success()
{
using var image = new Bitmap(16, 32);
Expand Down

0 comments on commit 0151ba2

Please sign in to comment.