public static void AssertContains(this TestSqlLoggerFactory testSqlLoggerFactory, params string[] expected)
    {
        string[] expectedFixed = new string[expected.Length];
        int      i             = 0;

        foreach (var item in expected)
        {
            expectedFixed[i++] = item.Replace("\r\n", "\n");
        }
        testSqlLoggerFactory.AssertBaseline(expectedFixed, assertOrder: false);
    }
    public static void AssertSql(this TestSqlLoggerFactory testSqlLoggerFactory, params string[] expected)
    {
        string[] expectedFixed = new string[expected.Length];
        int      i             = 0;

        foreach (var item in expected)
        {
            if (IgnoreStatement(item))
            {
                return;
            }
            expectedFixed[i++] = item.Replace("\r\n", "\n");
        }
        testSqlLoggerFactory.AssertBaseline(expectedFixed);
    }
        protected new void AssertSql(string expected)
        {
            var testSqlLoggerFactory = new TestSqlLoggerFactory();
            var logger = testSqlLoggerFactory.CreateLogger(nameof(MySqlMigrationsSqlGeneratorTest));

            logger.Log(
                LogLevel.Information,
                RelationalEventId.CommandExecuted.Id,
                new List <KeyValuePair <string, object> >
            {
                new KeyValuePair <string, object>("commandText", Sql.Trim()),
                new KeyValuePair <string, object>("parameters", string.Empty)
            }.AsReadOnly(),
                null,
                (pairs, exception) => (string)pairs.First(kvp => kvp.Key == "commandText").Value);
            testSqlLoggerFactory.AssertBaseline(new[] { expected });
        }