Suppres warning in tests

This commit is contained in:
Kenneth Skovhede
2025-09-22 14:36:14 +02:00
parent fb7ca3c2c7
commit 5df20ea6de
@@ -166,7 +166,10 @@ public class BackupConfigMaskingTests
Metadata = new Dictionary<string, string>()
};
// Suppress as we are in test code
#pragma warning disable SYSLIB0050 // Type or member is obsolete
var conn = (Connection)FormatterServices.GetUninitializedObject(typeof(Connection));
#pragma warning restore SYSLIB0050 // Type or member is obsolete
var err = conn.ValidateBackup(backup, null);
if (string.IsNullOrEmpty(err))