public static void AnalyseTables_GivenNullTables_ThrowsArgumentNullException()
        {
            var connection = Mock.Of <ISchematicConnection>();
            var rule       = new NoValueForNullableColumnRule(connection, RuleLevel.Error);

            Assert.That(() => rule.AnalyseTables(null), Throws.ArgumentNullException);
        }
        public async Task AnalyseTables_GivenTablesWithOnlyTablesWithNullableColumnsWithNoData_ProducesMessages()
        {
            var rule     = new NoValueForNullableColumnRule(Connection, RuleLevel.Error);
            var database = GetSqliteDatabase();

            var tables = new[]
            {
                await database.GetTable("table_for_nullable_columns_2").UnwrapSomeAsync().ConfigureAwait(false)
            };

            var hasMessages = await rule.AnalyseTables(tables).AnyAsync().ConfigureAwait(false);

            Assert.That(hasMessages, Is.True);
        }