Exemplo n.º 1
0
        public void chkTypeTVerTest1()
        {
            using (var l = new ConariL(gCfgUnlib))
            {
                TVer v = new TVer(7, 0, 256);

                Assert.Equal(true, l.DLR.chkTypeTVer <bool>(v, 7, 0, 256));
                Assert.Equal(false, l.DLR.chkTypeTVer <bool>(v, 7, 1, 256));
            }
        }
Exemplo n.º 2
0
        public void chkTypeRefTVerTest1()
        {
            using (var l = new ConariL(gCfgUnlib))
            {
                TVer v = new TVer(5, 0, 1024);

                using (var uv = new UnmanagedStructure(v))
                {
                    IntPtr ptr = uv;

                    Assert.Equal(true, l.DLR.chkTypeRefTVer <bool>(ptr, 5, 0, 1024));
                    Assert.Equal(false, l.DLR.chkTypeRefTVer <bool>(ptr, 5, 1, 1024));
                }
            }
        }