public void chkTypeTVerTest1() { using (var l = new ConariL(UNLIB_DLL)) { TVer v = new TVer(7, 0, 256); Assert.AreEqual(true, l.DLR.chkTypeTVer <bool>(v, 7, 0, 256)); Assert.AreEqual(false, l.DLR.chkTypeTVer <bool>(v, 7, 1, 256)); } }
public void chkTypeRefTVerTest1() { using (var l = new ConariL(UNLIB_DLL)) { TVer v = new TVer(5, 0, 1024); using (var uv = new UnmanagedStructure(v)) { IntPtr ptr = uv; Assert.AreEqual(true, l.DLR.chkTypeRefTVer <bool>(ptr, 5, 0, 1024)); Assert.AreEqual(false, l.DLR.chkTypeRefTVer <bool>(ptr, 5, 1, 1024)); } } }