Enabled and handled nullable in DiskImage tests

This commit is contained in:
Carl Johnsen
2026-02-15 11:14:13 +01:00
parent 9dfb1a683c
commit 32507379b0
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -614,7 +614,7 @@ namespace Duplicati.UnitTest
using (var restoreController = new Controller("file://" + TARGETFOLDER, restoreOptions, null))
{
var restoreResults = restoreController.Restore(new[] { geometryFile.Path });
var restoreResults = restoreController.Restore(new[] { geometryFile!.Path });
TestUtils.AssertResults(restoreResults);
}
@@ -682,7 +682,7 @@ namespace Duplicati.UnitTest
using (var restoreController = new Controller("file://" + TARGETFOLDER, restoreOptions, null))
{
var restoreResults = restoreController.Restore(new[] { geometryFile.Path });
var restoreResults = restoreController.Restore(new[] { geometryFile!.Path });
// Ignore NoFilesRestored warning as geometry.json is a special metadata file
var hasRelevantWarnings = restoreResults.Warnings.Any(w => !w.Contains("NoFilesRestored"));
+2
View File
@@ -29,6 +29,8 @@ using System.Threading;
using NUnit.Framework;
#nullable enable
namespace Duplicati.UnitTest
{
/// <summary>