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); }
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); }
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); }
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); }