Skip to content

Commit 4881763

Browse files
committed
Fix tests for <FB4.
1 parent 9728cac commit 4881763

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Provider/src/FirebirdSql.Data.FirebirdClient.Tests/FbDatabaseInfoTests.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
//$Authors = Carlos Guzman Alvarez, Jiri Cincura ([email protected])
1717

18+
using System;
1819
using System.Linq;
1920
using System.Reflection;
2021
using System.Threading;
@@ -33,14 +34,17 @@ public FbDatabaseInfoTests(FbServerType serverType, bool compression, FbWireCryp
3334
{ }
3435

3536
[Test]
36-
public void DatabaseInfoTest()
37+
public void CompleteDatabaseInfoTest()
3738
{
3839
var dbInfo = new FbDatabaseInfo(Connection);
3940
foreach (var m in dbInfo.GetType()
4041
.GetMethods(BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly)
4142
.Where(x => !x.IsSpecialName)
4243
.Where(x => x.Name.EndsWith("Async")))
4344
{
45+
if (ServerVersion < new Version(4, 0, 0, 0) && new[] { "GetWireCryptAsync" }.Contains(m.Name))
46+
continue;
47+
4448
Assert.DoesNotThrowAsync(() => (Task)m.Invoke(dbInfo, new object[] { CancellationToken.None }), m.Name);
4549
}
4650
}

0 commit comments

Comments
 (0)