Skip to content

Commit

Permalink
Added .NET8 tests for SIL.Core
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmyers committed Oct 10, 2024
1 parent 17401d1 commit 99d80a9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ public string CreateAnAcknowledgement_TestDefaultHtml(string key, string name, s
public void CreateAnAcknowledgement_NoCopyright_OverriddenByFile()
{
var ack = new AcknowledgementAttribute("testKey") { Name = "testName",
Location = GetDllWithPathInTestAssemblyFolder("NDesk.DBus.dll") } ;
Assert.That(ack.Copyright, Is.EqualTo("Copyright (C) Alp Toker"));
Location = GetDllWithPathInTestAssemblyFolder("nunit.framework.dll") } ;
Assert.That(ack.Copyright, Is.EqualTo("Copyright (c) 2022 Charlie Poole, Rob Prouse"));
}

[Test]
Expand Down
8 changes: 4 additions & 4 deletions SIL.Core.Tests/PlatformUtilities/PlatformTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,28 @@ namespace SIL.Tests.PlatformUtilities
public class PlatformTests
{
[Test]
[Platform(Exclude="Net")]
[Platform(Exclude="Net,NetCore")]
public void IsMono_Mono()
{
Assert.That(Platform.IsMono, Is.True);
}

[Test]
[Platform(Include="Net")]
[Platform(Include="Net,NetCore")]
public void IsMono_Net()
{
Assert.That(Platform.IsMono, Is.False);
}

[Test]
[Platform(Exclude="Net")]
[Platform(Exclude="Net,NetCore")]
public void IsDotnet_Mono()
{
Assert.That(Platform.IsDotNet, Is.False);
}

[Test]
[Platform(Include="Net")]
[Platform(Include="Net,NetCore")]
public void IsDotnet_Net()
{
Assert.That(Platform.IsDotNet, Is.True);
Expand Down
6 changes: 6 additions & 0 deletions SIL.Core.Tests/Progress/ConsoleProgressTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ public void Setup()
_countForWork = 0;
}

[TearDown]
public void TearDown()
{
_logBuilder.Dispose();
}

[Test]
[Category("ByHand")]
[Explicit]
Expand Down
1 change: 1 addition & 0 deletions SIL.Core.Tests/SIL.Core.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<AssemblyName>SIL.Core.Tests</AssemblyName>
<Description>Unit tests for SIL.Core</Description>
<AddSyntheticProjectReferencesForSolutionDependencies>false</AddSyntheticProjectReferencesForSolutionDependencies>
<TargetFrameworks>$(TargetFrameworks);net8.0</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 99d80a9

Please sign in to comment.