public void Realloc_XpcomInitialize_ReturnsValidPointer() { IntPtr memory = Xpcom.Alloc(new IntPtr(100)); memory = Xpcom.Realloc(memory, new IntPtr(200)); Assert.IsFalse(memory == IntPtr.Zero); Xpcom.Free(memory); }
public void Realloc_XpcomInitialize_ReturnsValidPointer() { IntPtr memory = Xpcom.Alloc(new IntPtr(100)); memory = Xpcom.Realloc(memory, new IntPtr(200)); Assert.IsFalse(memory == IntPtr.Zero); Xpcom.Free(memory); }