Skip to content

Commit

Permalink
Use .NET9
Browse files Browse the repository at this point in the history
  • Loading branch information
pmosk committed Dec 26, 2024
1 parent b766ede commit cad6506
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
9.0.x
# Create Local NuGet Source

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module internal TestHelper =
let internal shouldBeEqual<'t> (expected : 't) actual =
Assert.Equal(expected = expected, actual = actual)

let internal shouldBeEqualString expected actual =
let internal shouldBeEqualString (expected: string) (actual: string) =
Assert.Equal(expected = expected, actual = actual, ignoreCase = false)

let internal shouldBeDeepEqual expected actual =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<GenerateProgramFile>true</GenerateProgramFile>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<InvariantGlobalization>true</InvariantGlobalization>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);IDE0130</NoWarn>
<IsPackable>false</IsPackable>
<Authors>Andrei Sergeev, Pavel Moskovoy</Authors>
<Copyright>Copyright © 2020-2023 Andrei Sergeev, Pavel Moskovoy</Copyright>
<Copyright>Copyright © 2020-2024 Andrei Sergeev, Pavel Moskovoy</Copyright>
<RootNamespace>PrimeFuncPack.UnitTest.Data.Tests</RootNamespace>
<AssemblyName>PrimeFuncPack.UnitTest.Data.Tests</AssemblyName>
</PropertyGroup>
Expand All @@ -29,17 +30,17 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="DeepEqual" Version="4.2.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
<PackageReference Include="DeepEqual" Version="5.1.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="6.0.0">
<PackageReference Include="coverlet.collector" Version="6.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

</Project>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ partial class TestData
public const string LowerAnotherString = "another string";

public const string UpperAnotherString = "ANOTHER STRING";
}
}
3 changes: 1 addition & 2 deletions src/unit-test-data/UnitTest.Data/TestData/TestData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ public static partial class TestData
static TestData()
{
}
}

}
9 changes: 5 additions & 4 deletions src/unit-test-data/UnitTest.Data/UnitTest.Data.csproj
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<InvariantGlobalization>true</InvariantGlobalization>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);IDE0130</NoWarn>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageProjectUrl>https://github.com/pfpack/pfpack-unit-test</PackageProjectUrl>
<RepositoryUrl>https://github.com/pfpack/pfpack-unit-test</RepositoryUrl>
<Company>pfpack</Company>
<Authors>Andrei Sergeev, Pavel Moskovoy</Authors>
<Copyright>Copyright © 2020-2023 Andrei Sergeev, Pavel Moskovoy</Copyright>
<Copyright>Copyright © 2020-2024 Andrei Sergeev, Pavel Moskovoy</Copyright>
<Description>PrimeFuncPack UnitTest.Data is a library for .NET consisting of data types and predefined values to support unit testing.</Description>
<RootNamespace>PrimeFuncPack.UnitTest</RootNamespace>
<AssemblyName>PrimeFuncPack.UnitTest.Data</AssemblyName>
<Version>3.1.0</Version>
<Version>3.1.1-preview.1</Version>
</PropertyGroup>

<ItemGroup>
Expand All @@ -31,4 +32,4 @@
</None>
</ItemGroup>

</Project>
</Project>

0 comments on commit cad6506

Please sign in to comment.