Skip to content

Commit

Permalink
.NET 8 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmyers committed Sep 12, 2024
1 parent f22556e commit a4f5491
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions SIL.Core.Desktop.Tests/SIL.Core.Desktop.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<AssemblyName>SIL.Core.Desktop.Tests</AssemblyName>
<Description>Unit tests for SIL.Core.Desktop</Description>
<IsPackable>false</IsPackable>
<TargetFrameworks>$(TargetFrameworks);net8.0</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 2 additions & 0 deletions SIL.Core.Desktop.Tests/UsbDrive/Linux/UDiskDeviceTests.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if !NET
using System;
using System.IO;
using System.Linq;
Expand Down Expand Up @@ -75,3 +76,4 @@ public void DriveConnectionInterface_USBDrive_USB()

}
}
#endif
2 changes: 2 additions & 0 deletions SIL.Core.Desktop.Tests/UsbDrive/Linux/UDisksTests.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if !NET
using System;
using System.Linq;
using NUnit.Framework;
Expand Down Expand Up @@ -83,3 +84,4 @@ public void EnumerateUSB_HasOnlyPartitions()

}
}
#endif
4 changes: 4 additions & 0 deletions SIL.Core.Desktop.Tests/UsbDrive/UsbDeviceInfoTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
using NUnit.Framework;
using SIL.PlatformUtilities;
using SIL.UsbDrive;
#if !NET
using SIL.UsbDrive.Linux;
#endif

namespace SIL.Tests.UsbDrive
{
Expand Down Expand Up @@ -177,6 +179,7 @@ public void IsReady_2DrivesAreNotMounted_ReturnsFalse()
Assert.IsFalse(usbDrives[1].IsReady);
}

#if !NET
[Test]
[Category("RequiresUSB")]
[Category("SkipOnTeamCity")]
Expand All @@ -195,5 +198,6 @@ public void RootDirectory_FirstDriveIsNotMounted_Throws()
}
);
}
#endif
}
}

0 comments on commit a4f5491

Please sign in to comment.