mirror of https://github.com/dahall/Vanara.git
Added struct size test for Vanara.Shared.
parent
58a5eb7afb
commit
8785074b81
|
@ -1,5 +1,7 @@
|
|||
using NUnit.Framework;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using static Vanara.PInvoke.OverlappedAsync;
|
||||
|
||||
namespace Vanara.PInvoke.Tests
|
||||
|
@ -24,5 +26,11 @@ namespace Vanara.PInvoke.Tests
|
|||
EndOverlappedFunction(oar);
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestStructs()
|
||||
{
|
||||
typeof(Win32Error).Assembly.GetTypes().GetStructSizes(true).WriteValues();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue