juner / IoControl

IoControl is C# DeviceIoControl's library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PartitionInformationUnionTest#SizeOfTest を x64 環境 でテスト すると失敗する

juner opened this issue · comments

commented

PartitionInformationUnionTest#SizeOfTest を x64 環境 でテスト すると何故か失敗する。
具体的には次のテスト

[TestMethod]
public void SizeOfTest() => Trace.WriteLine(Marshal.SizeOf<PartitionInformationUnion>());

PartitionInformationGptTest#SizeOfTest 及び、 PartitionInformationMbrTest#SizeOfTest は成功しているので、LayoutKind.Explicit が原因に関連しそうだと踏んでいるが、 同系統のテストである DriveLayoutInformationUnionTest#SizeOfTest ではエラーとならないので、Guidが二つあるのが原因の可能性…?よくわからない。