Пример #1
0
        public void ConvertRecposToNativeWithNegativeCentriesLt()
        {
            var recpos = new JET_RECPOS();

            recpos.centriesLT    = -1;
            recpos.centriesTotal = 10;

            NATIVE_RECPOS native = recpos.GetNativeRecpos();
        }
Пример #2
0
        public void ConvertRecposToNativeWithNegativeCentriesTotal()
        {
            var recpos = new JET_RECPOS();

            recpos.centriesLT    = 1;
            recpos.centriesTotal = Int64.MinValue;

            NATIVE_RECPOS native = recpos.GetNativeRecpos();
        }
Пример #3
0
        public void ConvertRecposToNative()
        {
            var recpos = new JET_RECPOS();

            recpos.centriesLT    = 5;
            recpos.centriesTotal = 10;

            NATIVE_RECPOS native = recpos.GetNativeRecpos();

            Assert.AreEqual(5U, native.centriesLT);
            Assert.AreEqual(10U, native.centriesTotal);
        }