Example #1
0
        public void VerifyValidityCatchesNegativeCIndexes()
        {
            var x = new JET_TABLECREATE()
            {
                rgcolumncreate = null,
                cIndexes       = -1,
            };

            var y = new JET_TABLECREATE();

            Assert.IsFalse(x.ContentEquals(y));
        }
Example #2
0
        public void VerifyValidityCatchesCColumnsTooBig()
        {
            var x = new JET_TABLECREATE()
            {
                rgcolumncreate = new JET_COLUMNCREATE[]
                {
                    new JET_COLUMNCREATE(),
                    new JET_COLUMNCREATE(),
                },
                cColumns = 10,
            };

            var y = new JET_TABLECREATE();

            Assert.IsFalse(x.ContentEquals(y));
        }
Example #3
0
        public void VerifyValidityCatchesCIndexesTooBig()
        {
            var x = new JET_TABLECREATE()
            {
                rgindexcreate = new JET_INDEXCREATE[]
                {
                    new JET_INDEXCREATE(),
                    new JET_INDEXCREATE(),
                },
                cIndexes = 10,
            };

            var y = new JET_TABLECREATE();

            Assert.IsFalse(x.ContentEquals(y));
        }
Example #4
0
        public void VerifyValidityCatchesNegativeCIndexes()
        {
            var x = new JET_TABLECREATE()
            {
                rgcolumncreate = null,
                cIndexes = -1,
            };

            var y = new JET_TABLECREATE();
            Assert.IsFalse(x.ContentEquals(y));
        }
Example #5
0
        public void VerifyValidityCatchesCIndexesTooBig()
        {
            var x = new JET_TABLECREATE()
            {
                rgindexcreate = new JET_INDEXCREATE[]
                {
                    new JET_INDEXCREATE(),
                    new JET_INDEXCREATE(),
                },
                cIndexes = 10,
            };

            var y = new JET_TABLECREATE();
            Assert.IsFalse(x.ContentEquals(y));
        }
Example #6
0
        public void VerifyValidityCatchesCColumnsTooBig()
        {
            var x = new JET_TABLECREATE()
            {
                rgcolumncreate = new JET_COLUMNCREATE[]
                {
                    new JET_COLUMNCREATE(),
                    new JET_COLUMNCREATE(),
                },
                cColumns = 10,
            };

            var y = new JET_TABLECREATE();
            Assert.IsFalse(x.ContentEquals(y));
        }