Skip to content

Commit

Permalink
Update DatabaseLevelTests.cs
Browse files Browse the repository at this point in the history
Oracle does the weird thing. Of course.
  • Loading branch information
jas88 committed Jun 6, 2024
1 parent 97acd7b commit d874d94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Tests/FAnsiTests/Database/DatabaseLevelTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using FAnsi.Implementation;
using NUnit.Framework;
using NUnit.Framework.Constraints;
using Oracle.ManagedDataAccess.Client;
using TypeGuesser;

namespace FAnsiTests.Database;
Expand Down Expand Up @@ -61,9 +62,11 @@ public void TestListDatabasesAsync(DatabaseType type)

Constraint exceptionType = type switch
{
DatabaseType.MySql => Throws.TypeOf<OperationCanceledException>(),
DatabaseType.MicrosoftSQLServer => Throws.TypeOf<TaskCanceledException>(),
DatabaseType.PostgreSql => Throws.Nothing,
_ => Throws.TypeOf<OperationCanceledException>()
DatabaseType.Oracle => Throws.TypeOf<OracleException>(),
_ => throw new ArgumentOutOfRangeException(nameof(type), type, null)
};

Assert.That(
Expand Down

0 comments on commit d874d94

Please sign in to comment.