Exemplo n.º 1
0
        public void TestBitExceptionPrimaryKey()
        {
            IColumn column = new BitColumn("is_online");

            Assert.Throws <Exception>(() => column.PrimaryKey());
        }
Exemplo n.º 2
0
        public void TestBitExceptionAutoIncrement()
        {
            IColumn column = new BitColumn("is_online");

            Assert.Throws <Exception>(() => column.AutoIncrement());
        }
Exemplo n.º 3
0
        public void TestBitExceptionUnique()
        {
            IColumn column = new BitColumn("is_online");

            Assert.Throws <Exception>(() => column.Unique());
        }
Exemplo n.º 4
0
        public void TestBit()
        {
            IColumn column = new BitColumn("is_online");

            Assert.Equal("`is_online` BIT(1)", generator.ToSQL(column));
        }