public void ImageThunkData64ConstructorWorks_Test() { var thunkData64 = new IMAGE_THUNK_DATA(RawStructures.RawThunkData64, 2, true); Assert.AreEqual((ulong) 0x7766554433221100, thunkData64.AddressOfData); Assert.AreEqual((ulong) 0x7766554433221100, thunkData64.ForwarderString); Assert.AreEqual((ulong) 0x7766554433221100, thunkData64.Function); Assert.AreEqual((ulong) 0x7766554433221100, thunkData64.Ordinal); }
public void ImageThunkData32ConstructorWorks_Test() { var thunkData32 = new IMAGE_THUNK_DATA(RawStructures.RawThunkData32, 2, false); Assert.AreEqual((ulong) 0x33221100, thunkData32.AddressOfData); Assert.AreEqual((ulong) 0x33221100, thunkData32.ForwarderString); Assert.AreEqual((ulong) 0x33221100, thunkData32.Function); Assert.AreEqual((ulong) 0x33221100, thunkData32.Ordinal); }