From d874d94bb4aa13e08a28cbed732f1386d61323c4 Mon Sep 17 00:00:00 2001 From: James A Sutherland Date: Thu, 6 Jun 2024 10:39:27 -0500 Subject: [PATCH] Update DatabaseLevelTests.cs Oracle does the weird thing. Of course. --- Tests/FAnsiTests/Database/DatabaseLevelTests.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tests/FAnsiTests/Database/DatabaseLevelTests.cs b/Tests/FAnsiTests/Database/DatabaseLevelTests.cs index f79a728..e7d5598 100644 --- a/Tests/FAnsiTests/Database/DatabaseLevelTests.cs +++ b/Tests/FAnsiTests/Database/DatabaseLevelTests.cs @@ -7,6 +7,7 @@ using FAnsi.Implementation; using NUnit.Framework; using NUnit.Framework.Constraints; +using Oracle.ManagedDataAccess.Client; using TypeGuesser; namespace FAnsiTests.Database; @@ -61,9 +62,11 @@ public void TestListDatabasesAsync(DatabaseType type) Constraint exceptionType = type switch { + DatabaseType.MySql => Throws.TypeOf(), DatabaseType.MicrosoftSQLServer => Throws.TypeOf(), DatabaseType.PostgreSql => Throws.Nothing, - _ => Throws.TypeOf() + DatabaseType.Oracle => Throws.TypeOf(), + _ => throw new ArgumentOutOfRangeException(nameof(type), type, null) }; Assert.That(