public static extern int JetOpenTempTable3( IntPtr sesid, [In] NATIVE_COLUMNDEF[] rgcolumndef, uint ccolumn, [In] ref NATIVE_UNICODEINDEX pidxunicode, uint grbit, out IntPtr ptableid, [Out] uint[] rgcolumnid);
public void Setup() { this.managed = new JET_UNICODEINDEX() { lcid = 1033, dwMapFlags = 0x400, }; this.native = this.managed.GetNativeUnicodeIndex(); }
public void VerifyUnicodeIndexConversionToNativeThrowsWithLcid() { var unicodeIndexWithLcid = new JET_UNICODEINDEX() { szLocaleName = "de-de", dwMapFlags = 0x30403, }; try { NATIVE_UNICODEINDEX unicodeindex = unicodeIndexWithLcid.GetNativeUnicodeIndex(); Assert.Fail("The conversion should have thrown an ArgumentException!"); } catch (ArgumentException) { } }