Added struct size test for Vanara.Shared.

pull/299/head
dahall 2022-04-14 08:34:27 -06:00
parent 58a5eb7afb
commit 8785074b81
1 changed files with 8 additions and 0 deletions

View File

@ -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();
}
}
}