Пример #1
0
        public static void Ctor_GivenColumnSetContainingNullColumn_ThrowsArgumentNullException()
        {
            Identifier indexName = "test_index";
            var        columns   = new IDatabaseIndexColumn[] { null };

            Assert.That(() => new DatabaseIndex(indexName, false, columns, Array.Empty <IDatabaseColumn>(), true), Throws.ArgumentNullException);
        }
Пример #2
0
        public static void Ctor_GivenColumnSetContainingNullColumn_ThrowsArgumentNullException()
        {
            Identifier indexName = "test_index";
            const bool isUnique  = true;
            var        columns   = new IDatabaseIndexColumn[] { null };

            Assert.That(() => new PostgreSqlDatabaseIndex(indexName, isUnique, columns), Throws.ArgumentNullException);
        }
Пример #3
0
        public static void Ctor_GivenColumnSetContainingNullColumn_ThrowsArgumentNullException()
        {
            Identifier indexName = "test_index";
            const bool isUnique  = true;
            var        columns   = new IDatabaseIndexColumn[] { null };
            const OracleIndexProperties properties = OracleIndexProperties.None;

            Assert.That(() => new OracleDatabaseIndex(indexName, isUnique, columns, properties), Throws.ArgumentNullException);
        }
Пример #4
0
        public static void Ctor_GivenColumnSetContainingNullColumn_ThrowsArgumentNullException()
        {
            Identifier indexName       = "test_index";
            const bool isUnique        = true;
            var        columns         = new IDatabaseIndexColumn[] { null };
            var        includedColumn  = Mock.Of <IDatabaseColumn>();
            var        includedColumns = new[] { includedColumn };

            Assert.That(() => new SqliteDatabaseIndex(indexName, isUnique, columns, includedColumns), Throws.ArgumentNullException);
        }