From 9a4a963fea6bc61630d0d23640c38bacbf254752 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Ros?= Date: Thu, 7 Nov 2024 10:01:16 -0800 Subject: [PATCH] Update test/OrchardCore.Tests/Orchard.Queries/SqlParserTests.cs Co-authored-by: Hisham Bin Ateya --- test/OrchardCore.Tests/Orchard.Queries/SqlParserTests.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/OrchardCore.Tests/Orchard.Queries/SqlParserTests.cs b/test/OrchardCore.Tests/Orchard.Queries/SqlParserTests.cs index f57d11d40b3..ec7850a5479 100644 --- a/test/OrchardCore.Tests/Orchard.Queries/SqlParserTests.cs +++ b/test/OrchardCore.Tests/Orchard.Queries/SqlParserTests.cs @@ -251,7 +251,10 @@ public void ShouldParseSubquery(string sql, string expectedSql) [InlineData("select a order by random", "SELECT [a] ORDER BY [random];")] public void ShouldOrderByRandom(string sql, string expectedSql) { + // Arrange & Act var result = SqlParser.TryParse(sql, _schema, _defaultDialect, _defaultTablePrefix, null, out var rawQuery, out var errors); + + // Assert Assert.True(result); Assert.Equal(expectedSql, FormatSql(rawQuery)); }