public void ConvertRetinfoToNativeWhenItagSequenceIsNegative() { var retinfo = new JET_RETINFO { ibLongValue = 0, itagSequence = Int32.MinValue }; NATIVE_RETINFO native = retinfo.GetNativeRetinfo(); }
public static extern int JetRetrieveColumn( IntPtr sesid, IntPtr tableid, uint columnid, IntPtr pvData, uint cbData, out uint cbActual, uint grbit, [In][Out] ref NATIVE_RETINFO pretinfo);
public void ConvertRetinfoToNative() { var retinfo = new JET_RETINFO { ibLongValue = 1, itagSequence = 2 }; NATIVE_RETINFO native = retinfo.GetNativeRetinfo(); Assert.AreEqual(1U, native.ibLongValue); Assert.AreEqual(2U, native.itagSequence); }
public void ConvertRetinfoFromNative() { var native = new NATIVE_RETINFO { columnidNextTagged = 257 }; var retinfo = new JET_RETINFO(); retinfo.SetFromNativeRetinfo(native); Assert.AreEqual(257U, retinfo.columnidNextTagged.Value); }
public void ConvertRetinfoToNative() { var retinfo = new JET_RETINFO(); retinfo.ibLongValue = 1; retinfo.itagSequence = 2; NATIVE_RETINFO native = retinfo.GetNativeRetinfo(); Assert.AreEqual <uint>(1, native.ibLongValue); Assert.AreEqual <uint>(2, native.itagSequence); }
public void ConvertRetinfo() { var retinfo = new JET_RETINFO { ibLongValue = 1, itagSequence = 2 }; NATIVE_RETINFO native = retinfo.GetNativeRetinfo(); native.columnidNextTagged = 300; retinfo.SetFromNativeRetinfo(native); Assert.AreEqual(1, retinfo.ibLongValue); Assert.AreEqual(2, retinfo.itagSequence); Assert.AreEqual(300U, retinfo.columnidNextTagged.Value); }