Skip to content

Commit

Permalink
Test -> Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
na1307 committed May 1, 2024
1 parent a2eef35 commit 146bd28
Show file tree
Hide file tree
Showing 45 changed files with 49 additions and 109 deletions.
34 changes: 8 additions & 26 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ on:

jobs:
build:
name: Build and Test (Debug)
name: .NET
runs-on: windows-latest
env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
OUTPUT_PATH: output
steps:
- uses: actions/checkout@v4
- name: Setup .NET
Expand All @@ -29,34 +30,15 @@ jobs:
restore-keys: ${{ runner.os }}-nuget-
- name: Restore dependencies
run: dotnet restore
- name: Build
- name: Build (Debug)
run: dotnet build --no-restore
- name: Test
- name: Test (Debug)
run: dotnet test --no-build --verbosity normal
pack:
name: Build and Pack (Release)
needs: build
runs-on: windows-latest
env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
OUTPUT_PATH: output
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Cache NuGet
uses: actions/cache@v4
with:
path: ${{ github.workspace }}\.nuget\packages
key: ${{ runner.os }}-nuget-${{ hashFiles('Directory.Packages.props') }} #hash of project files
restore-keys: ${{ runner.os }}-nuget-
- name: Restore dependencies
run: dotnet restore
- name: Build
- name: Clean (Debug)
run: dotnet clean
- name: Build (Release)
run: dotnet build --configuration Release --no-restore
- name: Pack
- name: Pack (Release)
run: dotnet pack --configuration Release --no-build --output ${{ env.OUTPUT_PATH }}
- name: Upload artifact
uses: actions/upload-artifact@v4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Bluehill.Deconstructors.DateTime.Test;
namespace Bluehill.Deconstructors.DateTime.Tests;

public sealed class DateTimeDeconstructorsTest {
private static readonly System.DateTime now = System.DateTime.Now;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net2.0;net3.5;net4.0-client;netstandard2.1;net6.0;net7.0;net8.0</TargetFrameworks>
<TargetFrameworks>net20;net35;net40;netstandard2.1;net6.0;net7.0;net8.0</TargetFrameworks>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Description>Deconstructors for DateTime and etc.</Description>
<PackageTags>$(PackageTags);datetime;dateonly;timeonly;datetimeoffset</PackageTags>
Expand All @@ -10,11 +10,6 @@
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\bluehill.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Using Remove="System.Linq" />
<Using Remove="System.Net.Http" />
<Using Remove="System.Threading.Tasks" />
</ItemGroup>
<ItemGroup>
<AssemblyAttribute Include="System.CLSCompliantAttribute">
<_Parameter1>true</_Parameter1>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Bluehill.Deconstructors.Drawing.Test;
namespace Bluehill.Deconstructors.Drawing.Tests;

public sealed class DrawingDeconstructorsTest {
[Fact]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net2.0;net3.5;net4.0-client;netstandard2.1</TargetFrameworks>
<TargetFrameworks>net20;net35;net40;netstandard2.1</TargetFrameworks>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Description>Deconstructors for Drawing types.</Description>
<PackageTags>$(PackageTags);drawing</PackageTags>
Expand All @@ -12,9 +12,6 @@
</PropertyGroup>
<ItemGroup>
<Using Include="System.Drawing" />
<Using Remove="System.Linq" />
<Using Remove="System.Net.Http" />
<Using Remove="System.Threading.Tasks" />
</ItemGroup>
<ItemGroup>
<AssemblyAttribute Include="System.CLSCompliantAttribute">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Bluehill.Deconstructors.Forms.Test;
namespace Bluehill.Deconstructors.Forms.Tests;

public sealed class FormsDeconstructorsTest {
[Fact]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<PropertyGroup>
<TargetFrameworks>net2.0;net3.5;net4.0-client;net6.0-windows</TargetFrameworks>
<TargetFrameworks>net20;net35;net40;net6.0-windows</TargetFrameworks>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Description>Deconstructors for Windows Forms types.</Description>
<PackageTags>$(PackageTags);winforms;forms</PackageTags>
Expand All @@ -11,11 +11,6 @@
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\bluehill.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Using Remove="System.Linq" />
<Using Remove="System.Net.Http" />
<Using Remove="System.Threading.Tasks" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Bluehill.Deconstructors.Drawing\Bluehill.Deconstructors.Drawing.csproj" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Bluehill.Deconstructors.KeyValuePair.Test;
namespace Bluehill.Deconstructors.KeyValuePair.Tests;

public sealed class KeyValuePairDeconstructorsTest {
[Fact]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net2.0;net3.5;net4.0-client;netstandard2.1</TargetFrameworks>
<TargetFrameworks>net20;net35;net40;netstandard2.1</TargetFrameworks>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Description>Deconstructors for KeyValuePair.</Description>
<PackageTags>$(PackageTags);keyvaluepair;dictionary;dictionaryentry</PackageTags>
Expand All @@ -10,11 +10,6 @@
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\bluehill.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Using Remove="System.Linq" />
<Using Remove="System.Net.Http" />
<Using Remove="System.Threading.Tasks" />
</ItemGroup>
<ItemGroup>
<AssemblyAttribute Include="System.CLSCompliantAttribute">
<_Parameter1>true</_Parameter1>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Bluehill.Deconstructors.List.Test;
namespace Bluehill.Deconstructors.List.Tests;

public sealed class ListDeconstructorsTest {
private static readonly int[] array = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net2.0;net3.5;net4.0-client;netstandard2.1</TargetFrameworks>
<TargetFrameworks>net20;net35;net40;netstandard2.1</TargetFrameworks>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Description>Deconstructors for IList(Array, List, etc.).</Description>
<PackageTags>$(PackageTags);ilist</PackageTags>
Expand All @@ -10,11 +10,6 @@
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\bluehill.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Using Remove="System.Linq" />
<Using Remove="System.Net.Http" />
<Using Remove="System.Threading.Tasks" />
</ItemGroup>
<ItemGroup>
<AssemblyAttribute Include="System.CLSCompliantAttribute">
<_Parameter1>true</_Parameter1>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Bluehill.Deconstructors.Numerics.Test;
namespace Bluehill.Deconstructors.Numerics.Tests;

public sealed class NumericsDeconstructorsTest {
[Fact]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net4.6;netstandard2.1</TargetFrameworks>
<TargetFrameworks>net46;netstandard2.1</TargetFrameworks>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Description>Deconstructors for Numerics types.</Description>
<PackageTags>$(PackageTags);numerics;vector;matrix</PackageTags>
Expand All @@ -12,9 +12,6 @@
</PropertyGroup>
<ItemGroup>
<Using Include="System.Numerics" />
<Using Remove="System.Linq" />
<Using Remove="System.Net.Http" />
<Using Remove="System.Threading.Tasks" />
</ItemGroup>
<ItemGroup>
<AssemblyAttribute Include="System.CLSCompliantAttribute">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Bluehill.Deconstructors.Span.Test;
namespace Bluehill.Deconstructors.Span.Tests;

public sealed class SpanDeconstructorsTest {
private static readonly int[] array = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\bluehill.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Using Remove="System.Linq" />
<Using Remove="System.Net.Http" />
<Using Remove="System.Threading.Tasks" />
</ItemGroup>
<ItemGroup>
<AssemblyAttribute Include="System.CLSCompliantAttribute">
<_Parameter1>true</_Parameter1>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Bluehill.Deconstructors.Tuple.Test;
namespace Bluehill.Deconstructors.Tuple.Tests;

public sealed class TupleDeconstructorsTest {
[Fact]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net4.0-client;netstandard2.1</TargetFrameworks>
<TargetFrameworks>net40;netstandard2.1</TargetFrameworks>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Description>Deconstructors for Tuple.</Description>
<PackageTags>$(PackageTags);tuple</PackageTags>
Expand All @@ -10,9 +10,6 @@
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\bluehill.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Using Remove="System.Net.Http" />
</ItemGroup>
<ItemGroup>
<AssemblyAttribute Include="System.CLSCompliantAttribute">
<_Parameter1>true</_Parameter1>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Bluehill.Deconstructors.Version.Test;
namespace Bluehill.Deconstructors.Version.Tests;

public sealed class VersionDeconstructorsTest {
[Fact]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net2.0;net3.5;net4.0-client;netstandard2.1</TargetFrameworks>
<TargetFrameworks>net20;net35;net40;netstandard2.1</TargetFrameworks>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Description>Deconstructors for Version.</Description>
<PackageTags>$(PackageTags);version</PackageTags>
Expand All @@ -10,11 +10,6 @@
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\bluehill.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Using Remove="System.Linq" />
<Using Remove="System.Net.Http" />
<Using Remove="System.Threading.Tasks" />
</ItemGroup>
<ItemGroup>
<AssemblyAttribute Include="System.CLSCompliantAttribute">
<_Parameter1>true</_Parameter1>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Bluehill.Deconstructors.Wpf.Test;
namespace Bluehill.Deconstructors.Wpf.Tests;

public sealed class WpfDeconstructorsTest {
[Fact]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<PropertyGroup>
<TargetFrameworks>net3.5;net4.0-client;net6.0-windows</TargetFrameworks>
<TargetFrameworks>net35;net40;net6.0-windows</TargetFrameworks>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Description>Deconstructors for WPF types.</Description>
<PackageTags>$(PackageTags);wpf</PackageTags>
Expand All @@ -14,9 +14,6 @@
<ItemGroup>
<Using Include="System.Windows" />
<Using Include="System.Windows.Media" />
<Using Remove="System.Linq" />
<Using Remove="System.Net.Http" />
<Using Remove="System.Threading.Tasks" />
</ItemGroup>
<ItemGroup>
<AssemblyAttribute Include="System.CLSCompliantAttribute">
Expand Down
24 changes: 12 additions & 12 deletions Bluehill.Deconstructors.sln
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bluehill.Deconstructors.Ver
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bluehill.Deconstructors.DateTime", "Bluehill.Deconstructors.DateTime\Bluehill.Deconstructors.DateTime.csproj", "{156A8160-6777-4738-B044-A87890986940}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bluehill.Deconstructors.Span", "Bluehill.Deconstructors.Span\Bluehill.Deconstructors.Span.csproj", "{B1E4F4E8-DA12-4F35-9CF7-A5BCFF032870}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "솔루션 항목", "솔루션 항목", "{CF78EF3F-0E13-42AB-AC5E-A37348922024}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
Expand All @@ -36,27 +38,25 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "솔루션 항목", "솔루
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "ExtensionAttribute", "ExtensionAttribute\ExtensionAttribute.shproj", "{149D1E4E-9431-430F-BAB3-D7FDECF2A6BE}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bluehill.Deconstructors.List.Test", "Bluehill.Deconstructors.List.Test\Bluehill.Deconstructors.List.Test.csproj", "{2E6E7B04-F991-4626-8C47-FEEB8E9E84A8}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bluehill.Deconstructors.List.Tests", "Bluehill.Deconstructors.List.Tests\Bluehill.Deconstructors.List.Tests.csproj", "{2E6E7B04-F991-4626-8C47-FEEB8E9E84A8}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bluehill.Deconstructors.Drawing.Test", "Bluehill.Deconstructors.Drawing.Test\Bluehill.Deconstructors.Drawing.Test.csproj", "{8D7F7185-9E3C-49C9-AA8A-BDF4765EF28F}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bluehill.Deconstructors.Drawing.Tests", "Bluehill.Deconstructors.Drawing.Tests\Bluehill.Deconstructors.Drawing.Tests.csproj", "{8D7F7185-9E3C-49C9-AA8A-BDF4765EF28F}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bluehill.Deconstructors.Numerics.Test", "Bluehill.Deconstructors.Numerics.Test\Bluehill.Deconstructors.Numerics.Test.csproj", "{884D714B-E432-492F-81A9-9DE5A28C15AC}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bluehill.Deconstructors.Numerics.Tests", "Bluehill.Deconstructors.Numerics.Tests\Bluehill.Deconstructors.Numerics.Tests.csproj", "{884D714B-E432-492F-81A9-9DE5A28C15AC}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bluehill.Deconstructors.Forms.Test", "Bluehill.Deconstructors.Forms.Test\Bluehill.Deconstructors.Forms.Test.csproj", "{40C0838E-9BE4-4CAE-8500-A95F18E1A707}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bluehill.Deconstructors.Forms.Tests", "Bluehill.Deconstructors.Forms.Tests\Bluehill.Deconstructors.Forms.Tests.csproj", "{40C0838E-9BE4-4CAE-8500-A95F18E1A707}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bluehill.Deconstructors.Wpf.Test", "Bluehill.Deconstructors.Wpf.Test\Bluehill.Deconstructors.Wpf.Test.csproj", "{19CD5A07-CF79-40CE-9E45-57321399E843}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bluehill.Deconstructors.Wpf.Tests", "Bluehill.Deconstructors.Wpf.Tests\Bluehill.Deconstructors.Wpf.Tests.csproj", "{19CD5A07-CF79-40CE-9E45-57321399E843}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bluehill.Deconstructors.KeyValuePair.Test", "Bluehill.Deconstructors.KeyValuePair.Test\Bluehill.Deconstructors.KeyValuePair.Test.csproj", "{2DACB48B-2F98-45E6-85BB-2421216AE133}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bluehill.Deconstructors.KeyValuePair.Tests", "Bluehill.Deconstructors.KeyValuePair.Tests\Bluehill.Deconstructors.KeyValuePair.Tests.csproj", "{2DACB48B-2F98-45E6-85BB-2421216AE133}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bluehill.Deconstructors.Tuple.Test", "Bluehill.Deconstructors.Tuple.Test\Bluehill.Deconstructors.Tuple.Test.csproj", "{143572EA-8104-4C2A-82DA-B9365DE609BF}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bluehill.Deconstructors.Tuple.Tests", "Bluehill.Deconstructors.Tuple.Tests\Bluehill.Deconstructors.Tuple.Tests.csproj", "{143572EA-8104-4C2A-82DA-B9365DE609BF}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bluehill.Deconstructors.Version.Test", "Bluehill.Deconstructors.Version.Test\Bluehill.Deconstructors.Version.Test.csproj", "{01775CD6-1561-4423-BEF7-9CAFB446A8D4}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bluehill.Deconstructors.Version.Tests", "Bluehill.Deconstructors.Version.Tests\Bluehill.Deconstructors.Version.Tests.csproj", "{01775CD6-1561-4423-BEF7-9CAFB446A8D4}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bluehill.Deconstructors.DateTime.Test", "Bluehill.Deconstructors.DateTime.Test\Bluehill.Deconstructors.DateTime.Test.csproj", "{DB3C47F7-7DA9-44AE-A9BB-FDB998C823D1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bluehill.Deconstructors.Span", "Bluehill.Deconstructors.Span\Bluehill.Deconstructors.Span.csproj", "{B1E4F4E8-DA12-4F35-9CF7-A5BCFF032870}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bluehill.Deconstructors.DateTime.Tests", "Bluehill.Deconstructors.DateTime.Tests\Bluehill.Deconstructors.DateTime.Tests.csproj", "{DB3C47F7-7DA9-44AE-A9BB-FDB998C823D1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bluehill.Deconstructors.Span.Test", "Bluehill.Deconstructors.Span.Test\Bluehill.Deconstructors.Span.Test.csproj", "{F0B23EFE-F673-49A6-8817-1F7F5C12CC58}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bluehill.Deconstructors.Span.Tests", "Bluehill.Deconstructors.Span.Tests\Bluehill.Deconstructors.Span.Tests.csproj", "{F0B23EFE-F673-49A6-8817-1F7F5C12CC58}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
Loading

0 comments on commit 146bd28

Please sign in to comment.