From c45ba4641a6c2d41edcdb9f2631a647f52f06d50 Mon Sep 17 00:00:00 2001 From: AN Date: Fri, 30 Jun 2023 14:00:51 -0500 Subject: [PATCH] rename --- .github/workflows/main.yml | 12 ++++-- .github/workflows/pull_request.yml | 4 +- Hedgehog.Xunit.sln | 39 +++++++++---------- .../DocumentationSamples.cs | 10 ++--- .../GenAttributeVsContainer/Container.cs} | 12 +++--- .../GenAttributeVsContainer/GenAttribute.cs} | 10 ++--- .../ParameterizedGenAttribute.cs} | 10 ++--- .../Hedgehog.Xunit.Examples.CSharp.csproj} | 1 - .../Usings.cs | 0 .../GenAttributeVsContainer.fs} | 2 +- .../Hedgehog.Xunit.Examples.FSharp.fsproj} | 3 +- readmeCSharp.md | 8 ++-- src/Hedgehog.Xunit/Hedgehog.Xunit.fsproj | 4 +- .../Async.cs | 2 +- .../Hedgehog.Xunit.Tests.CSharp.csproj} | 0 .../Usings.cs | 0 .../Hedgehog.Xunit.Tests.FSharp.fsproj} | 0 .../PropertyTests.fs | 6 +-- 18 files changed, 63 insertions(+), 60 deletions(-) rename examples/{csharp-examples => Hedgehog.Xunit.Examples.CSharp}/DocumentationSamples.cs (96%) rename examples/{csharp-examples/attribute-based-parameter-comparison/PositiveAndNegativeGeneratorContainerTypes.cs => Hedgehog.Xunit.Examples.CSharp/GenAttributeVsContainer/Container.cs} (79%) rename examples/{csharp-examples/attribute-based-parameter-comparison/PositiveAndNegativeSimpleAttribute.cs => Hedgehog.Xunit.Examples.CSharp/GenAttributeVsContainer/GenAttribute.cs} (78%) rename examples/{csharp-examples/attribute-based-parameter-comparison/PositiveAndNegativeUtilizingIntegerRangeAttribute.cs => Hedgehog.Xunit.Examples.CSharp/GenAttributeVsContainer/ParameterizedGenAttribute.cs} (79%) rename examples/{csharp-examples/csharp-examples.csproj => Hedgehog.Xunit.Examples.CSharp/Hedgehog.Xunit.Examples.CSharp.csproj} (95%) rename examples/{csharp-examples => Hedgehog.Xunit.Examples.CSharp}/Usings.cs (100%) rename examples/{fsharp-examples/attribute-based-parameter-comparison.fs => Hedgehog.Xunit.Examples.FSharp/GenAttributeVsContainer.fs} (97%) rename examples/{fsharp-examples/fsharp-examples.fsproj => Hedgehog.Xunit.Examples.FSharp/Hedgehog.Xunit.Examples.FSharp.fsproj} (90%) rename tests/{Hedgehog.Xunit.CSharp.Tests => Hedgehog.Xunit.Tests.CSharp}/Async.cs (90%) rename tests/{Hedgehog.Xunit.CSharp.Tests/Hedgehog.Xunit.CSharp.Tests.csproj => Hedgehog.Xunit.Tests.CSharp/Hedgehog.Xunit.Tests.CSharp.csproj} (100%) rename tests/{Hedgehog.Xunit.CSharp.Tests => Hedgehog.Xunit.Tests.CSharp}/Usings.cs (100%) rename tests/{Hedgehog.Xunit.Tests/Hedgehog.Xunit.Tests.fsproj => Hedgehog.Xunit.Tests.FSharp/Hedgehog.Xunit.Tests.FSharp.fsproj} (100%) rename tests/{Hedgehog.Xunit.Tests => Hedgehog.Xunit.Tests.FSharp}/PropertyTests.fs (98%) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b4c0414..7766291 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,12 +15,18 @@ jobs: uses: actions/setup-dotnet@v3 - name: Build run: dotnet build -c Release "src/Hedgehog.Xunit" - - name: Test - run: dotnet test -c Release "tests/Hedgehog.Xunit.Tests" /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov + - name: Test F# + run: dotnet test -c Release "tests/Hedgehog.Xunit.Tests.FSharp" /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov + - name: Test C# + run: dotnet test -c Release "tests/Hedgehog.Xunit.Tests.CSharp" + - name: Run F# Examples + run: dotnet test -c Release "tests/Hedgehog.Xunit.Examples.FSharp" + - name: Run C# Examples + run: dotnet test -c Release "tests/Hedgehog.Xunit.Examples.CSharp" - name: Coveralls uses: coverallsapp/github-action@master with: - path-to-lcov: tests/Hedgehog.Xunit.Tests/TestResults/coverage.info + path-to-lcov: tests/Hedgehog.Xunit.Tests.FSharp/TestResults/coverage.info github-token: ${{ secrets.GITHUB_TOKEN }} - name: Publish NuGet uses: alirezanet/publish-nuget@v3.1.0 diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 67ce2b7..cdf164f 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -16,9 +16,9 @@ jobs: - name: Build run: dotnet build -c Release "src/Hedgehog.Xunit" - name: Test - run: dotnet test -c Release "tests/Hedgehog.Xunit.Tests" /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov + run: dotnet test -c Release "tests/Hedgehog.Xunit.Tests.FSharp" /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov - name: Coveralls uses: coverallsapp/github-action@master with: - path-to-lcov: tests/Hedgehog.Xunit.Tests/TestResults/coverage.info + path-to-lcov: tests/Hedgehog.Xunit.Tests.FSharp/TestResults/coverage.info github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/Hedgehog.Xunit.sln b/Hedgehog.Xunit.sln index 44c819f..b3eeaff 100644 --- a/Hedgehog.Xunit.sln +++ b/Hedgehog.Xunit.sln @@ -1,11 +1,16 @@ - Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31612.314 MinimumVisualStudioVersion = 10.0.40219.1 Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Hedgehog.Xunit", "src\Hedgehog.Xunit\Hedgehog.Xunit.fsproj", "{216BE9A2-7DCC-445F-8438-B138D8CB1FE8}" EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Hedgehog.Xunit.Tests", "tests\Hedgehog.Xunit.Tests\Hedgehog.Xunit.Tests.fsproj", "{63A8D184-519E-4061-8A74-F1EACAF3B0D5}" +Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Hedgehog.Xunit.Tests.FSharp", "tests\Hedgehog.Xunit.Tests.FSharp\Hedgehog.Xunit.Tests.FSharp.fsproj", "{63A8D184-519E-4061-8A74-F1EACAF3B0D5}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hedgehog.Xunit.Tests.CSharp", "tests\Hedgehog.Xunit.Tests.CSharp\Hedgehog.Xunit.Tests.CSharp.csproj", "{FD0E6589-BB1A-4A0D-B5C0-E3F2C360C16D}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hedgehog.Xunit.Examples.CSharp", "examples\Hedgehog.Xunit.Examples.CSharp\Hedgehog.Xunit.Examples.CSharp.csproj", "{28392E14-0B8D-425A-B732-CF1FEF2B3078}" +EndProject +Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Hedgehog.Xunit.Examples.FSharp", "examples\Hedgehog.Xunit.Examples.FSharp\Hedgehog.Xunit.Examples.FSharp.fsproj", "{9772F0D9-76F0-4ABE-A795-D901638A0684}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{E5FCE96F-A6AE-434F-B901-19359F39B504}" ProjectSection(SolutionItems) = preProject @@ -14,12 +19,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution readmeCSharp.md = readmeCSharp.md EndProjectSection EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "csharp-examples", "examples\csharp-examples\csharp-examples.csproj", "{601273CF-7FBF-4263-9EC4-8206CFDF6DC8}" -EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "fsharp-examples", "examples\fsharp-examples\fsharp-examples.fsproj", "{7F2616F0-500D-488F-A2BC-B4D6D4833DE1}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Hedgehog.Xunit.CSharp.Tests", "tests\Hedgehog.Xunit.CSharp.Tests\Hedgehog.Xunit.CSharp.Tests.csproj", "{FADA4F4C-8FAB-49CB-900C-7321910433DB}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -34,18 +33,18 @@ Global {63A8D184-519E-4061-8A74-F1EACAF3B0D5}.Debug|Any CPU.Build.0 = Debug|Any CPU {63A8D184-519E-4061-8A74-F1EACAF3B0D5}.Release|Any CPU.ActiveCfg = Release|Any CPU {63A8D184-519E-4061-8A74-F1EACAF3B0D5}.Release|Any CPU.Build.0 = Release|Any CPU - {601273CF-7FBF-4263-9EC4-8206CFDF6DC8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {601273CF-7FBF-4263-9EC4-8206CFDF6DC8}.Debug|Any CPU.Build.0 = Debug|Any CPU - {601273CF-7FBF-4263-9EC4-8206CFDF6DC8}.Release|Any CPU.ActiveCfg = Release|Any CPU - {601273CF-7FBF-4263-9EC4-8206CFDF6DC8}.Release|Any CPU.Build.0 = Release|Any CPU - {7F2616F0-500D-488F-A2BC-B4D6D4833DE1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7F2616F0-500D-488F-A2BC-B4D6D4833DE1}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7F2616F0-500D-488F-A2BC-B4D6D4833DE1}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7F2616F0-500D-488F-A2BC-B4D6D4833DE1}.Release|Any CPU.Build.0 = Release|Any CPU - {FADA4F4C-8FAB-49CB-900C-7321910433DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FADA4F4C-8FAB-49CB-900C-7321910433DB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FADA4F4C-8FAB-49CB-900C-7321910433DB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FADA4F4C-8FAB-49CB-900C-7321910433DB}.Release|Any CPU.Build.0 = Release|Any CPU + {FD0E6589-BB1A-4A0D-B5C0-E3F2C360C16D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FD0E6589-BB1A-4A0D-B5C0-E3F2C360C16D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FD0E6589-BB1A-4A0D-B5C0-E3F2C360C16D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FD0E6589-BB1A-4A0D-B5C0-E3F2C360C16D}.Release|Any CPU.Build.0 = Release|Any CPU + {28392E14-0B8D-425A-B732-CF1FEF2B3078}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {28392E14-0B8D-425A-B732-CF1FEF2B3078}.Debug|Any CPU.Build.0 = Debug|Any CPU + {28392E14-0B8D-425A-B732-CF1FEF2B3078}.Release|Any CPU.ActiveCfg = Release|Any CPU + {28392E14-0B8D-425A-B732-CF1FEF2B3078}.Release|Any CPU.Build.0 = Release|Any CPU + {9772F0D9-76F0-4ABE-A795-D901638A0684}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9772F0D9-76F0-4ABE-A795-D901638A0684}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9772F0D9-76F0-4ABE-A795-D901638A0684}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9772F0D9-76F0-4ABE-A795-D901638A0684}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/examples/csharp-examples/DocumentationSamples.cs b/examples/Hedgehog.Xunit.Examples.CSharp/DocumentationSamples.cs similarity index 96% rename from examples/csharp-examples/DocumentationSamples.cs rename to examples/Hedgehog.Xunit.Examples.CSharp/DocumentationSamples.cs index 1524d67..3e580ad 100644 --- a/examples/csharp-examples/DocumentationSamples.cs +++ b/examples/Hedgehog.Xunit.Examples.CSharp/DocumentationSamples.cs @@ -1,13 +1,13 @@ +namespace Hedgehog.Xunit.Examples.CSharp; + +using global::Xunit.Abstractions; using Hedgehog; using Hedgehog.Linq; using Hedgehog.Xunit; using Microsoft.FSharp.Core; -using Xunit.Abstractions; using static Hedgehog.Linq.Property; -using Gen = Hedgehog.Linq.Gen; -using Range = Hedgehog.Linq.Range; - -namespace csharp_examples; +using Gen = Linq.Gen; +using Range = Linq.Range; public class DocumentationSamples { diff --git a/examples/csharp-examples/attribute-based-parameter-comparison/PositiveAndNegativeGeneratorContainerTypes.cs b/examples/Hedgehog.Xunit.Examples.CSharp/GenAttributeVsContainer/Container.cs similarity index 79% rename from examples/csharp-examples/attribute-based-parameter-comparison/PositiveAndNegativeGeneratorContainerTypes.cs rename to examples/Hedgehog.Xunit.Examples.CSharp/GenAttributeVsContainer/Container.cs index 977b92e..58442a6 100644 --- a/examples/csharp-examples/attribute-based-parameter-comparison/PositiveAndNegativeGeneratorContainerTypes.cs +++ b/examples/Hedgehog.Xunit.Examples.CSharp/GenAttributeVsContainer/Container.cs @@ -1,10 +1,10 @@ -using Hedgehog; +namespace Hedgehog.Xunit.Examples.CSharp.GenAttributeVsContainer; + +using Hedgehog; using Hedgehog.Linq; using Hedgehog.Xunit; -using Gen = Hedgehog.Linq.Gen; -using Range = Hedgehog.Linq.Range; - -namespace csharp_examples.attribute_based_parameter_comparison; +using Gen = Linq.Gen; +using Range = Linq.Range; public record PositiveInt(int Value); public record NegativeInt(int Value); @@ -24,7 +24,7 @@ from i in Gen.Int32(Range.Constant(int.MinValue, -1)) .WithGenerator(GenNegativeInt); } -public class PositiveAndNegativeGeneratorContainerTypes +public class Container { [Property(typeof(Generators))] public bool ResultOfAddingPositiveAndNegativeLessThanPositive( diff --git a/examples/csharp-examples/attribute-based-parameter-comparison/PositiveAndNegativeSimpleAttribute.cs b/examples/Hedgehog.Xunit.Examples.CSharp/GenAttributeVsContainer/GenAttribute.cs similarity index 78% rename from examples/csharp-examples/attribute-based-parameter-comparison/PositiveAndNegativeSimpleAttribute.cs rename to examples/Hedgehog.Xunit.Examples.CSharp/GenAttributeVsContainer/GenAttribute.cs index 902feb1..89506f7 100644 --- a/examples/csharp-examples/attribute-based-parameter-comparison/PositiveAndNegativeSimpleAttribute.cs +++ b/examples/Hedgehog.Xunit.Examples.CSharp/GenAttributeVsContainer/GenAttribute.cs @@ -1,9 +1,9 @@ -using Hedgehog; -using Hedgehog.Xunit; -using Gen = Hedgehog.Linq.Gen; -using Range = Hedgehog.Linq.Range; +namespace Hedgehog.Xunit.Examples.CSharp.GenAttributeVsContainer; -namespace csharp_examples.attribute_based_parameter_comparison; +using Hedgehog; +using Hedgehog.Xunit; +using Gen = Linq.Gen; +using Range = Linq.Range; public class Negative : GenAttribute { diff --git a/examples/csharp-examples/attribute-based-parameter-comparison/PositiveAndNegativeUtilizingIntegerRangeAttribute.cs b/examples/Hedgehog.Xunit.Examples.CSharp/GenAttributeVsContainer/ParameterizedGenAttribute.cs similarity index 79% rename from examples/csharp-examples/attribute-based-parameter-comparison/PositiveAndNegativeUtilizingIntegerRangeAttribute.cs rename to examples/Hedgehog.Xunit.Examples.CSharp/GenAttributeVsContainer/ParameterizedGenAttribute.cs index c3c9d6d..b3f142d 100644 --- a/examples/csharp-examples/attribute-based-parameter-comparison/PositiveAndNegativeUtilizingIntegerRangeAttribute.cs +++ b/examples/Hedgehog.Xunit.Examples.CSharp/GenAttributeVsContainer/ParameterizedGenAttribute.cs @@ -1,9 +1,9 @@ -using Hedgehog; -using Hedgehog.Xunit; -using Gen = Hedgehog.Linq.Gen; -using Range = Hedgehog.Linq.Range; +namespace Hedgehog.Xunit.Examples.CSharp.GenAttributeVsContainer; -namespace csharp_examples.attribute_based_parameter_comparison; +using Hedgehog; +using Hedgehog.Xunit; +using Gen = Linq.Gen; +using Range = Linq.Range; public class Int32Range : GenAttribute { diff --git a/examples/csharp-examples/csharp-examples.csproj b/examples/Hedgehog.Xunit.Examples.CSharp/Hedgehog.Xunit.Examples.CSharp.csproj similarity index 95% rename from examples/csharp-examples/csharp-examples.csproj rename to examples/Hedgehog.Xunit.Examples.CSharp/Hedgehog.Xunit.Examples.CSharp.csproj index 095abe6..f63e73b 100644 --- a/examples/csharp-examples/csharp-examples.csproj +++ b/examples/Hedgehog.Xunit.Examples.CSharp/Hedgehog.Xunit.Examples.CSharp.csproj @@ -2,7 +2,6 @@ net6.0 - csharp_examples enable enable diff --git a/examples/csharp-examples/Usings.cs b/examples/Hedgehog.Xunit.Examples.CSharp/Usings.cs similarity index 100% rename from examples/csharp-examples/Usings.cs rename to examples/Hedgehog.Xunit.Examples.CSharp/Usings.cs diff --git a/examples/fsharp-examples/attribute-based-parameter-comparison.fs b/examples/Hedgehog.Xunit.Examples.FSharp/GenAttributeVsContainer.fs similarity index 97% rename from examples/fsharp-examples/attribute-based-parameter-comparison.fs rename to examples/Hedgehog.Xunit.Examples.FSharp/GenAttributeVsContainer.fs index a480b09..f98064e 100644 --- a/examples/fsharp-examples/attribute-based-parameter-comparison.fs +++ b/examples/Hedgehog.Xunit.Examples.FSharp/GenAttributeVsContainer.fs @@ -1,4 +1,4 @@ -module attribute_based_parameter_comparison +module GenAttributeVsContainer open Hedgehog open Hedgehog.Xunit diff --git a/examples/fsharp-examples/fsharp-examples.fsproj b/examples/Hedgehog.Xunit.Examples.FSharp/Hedgehog.Xunit.Examples.FSharp.fsproj similarity index 90% rename from examples/fsharp-examples/fsharp-examples.fsproj rename to examples/Hedgehog.Xunit.Examples.FSharp/Hedgehog.Xunit.Examples.FSharp.fsproj index 3934041..2dedd9c 100644 --- a/examples/fsharp-examples/fsharp-examples.fsproj +++ b/examples/Hedgehog.Xunit.Examples.FSharp/Hedgehog.Xunit.Examples.FSharp.fsproj @@ -2,14 +2,13 @@ net6.0 - fsharp_examples false false - + diff --git a/readmeCSharp.md b/readmeCSharp.md index 2eaf7a6..5100a0d 100644 --- a/readmeCSharp.md +++ b/readmeCSharp.md @@ -64,7 +64,7 @@ Allows the easy configuration of all properties in a test suite. Rerun a particular test case. * [GenAttribute](#GenAttribute) Control what generator is used on a parameter by parameter basis. configure -> All code in the below is available [here](/examples/csharp-examples/DocumentationSamples.cs) +> All code in the below is available [here](/examples/Hedgehog.Xunit.Examples.CSharp/DocumentationSamples.cs) ### `Property` attribute --- @@ -262,7 +262,7 @@ public bool this_passes_now(int i) => This is the base type of an attribute that can applied property function arguments. It allows you to provide a generator on a parameter by parameter basis. Lets look at the a property where we want to specify the generator to be used for two integer arguments. -Using a `Property` attribute on this turns out to be quite tricky as we require two different generators for the same type, we may end up with something like [this](/examples/csharp-examples/attribute-based-parameter-comparison/PositiveAndNegativeGeneratorContainerTypes.cs). +Using a `Property` attribute on this turns out to be quite tricky as we require two different generators for the same type, we may end up with something like [this](/examples/Hedgehog.Xunit.Examples.CSharp/attribute-based-parameter-comparison/PositiveAndNegativeGeneratorContainerTypes.cs). ```CSharp @@ -295,7 +295,7 @@ public class PositiveAndNegativeGeneratorContainerTypes } ``` - Using the `GenAttribute` attribute is would look like [this](/examples//csharp-examples//attribute-based-parameter-comparison/PositiveAndNegativeSimpleAttribute.cs): + Using the `GenAttribute` attribute is would look like [this](/examples/Hedgehog.Xunit.Examples.CSharp/attribute-based-parameter-comparison/PositiveAndNegativeSimpleAttribute.cs): ```CSharp public class Negative : GenAttribute @@ -317,7 +317,7 @@ public class PositiveAndNegativeUtilizingIntegerRangeAttribute } ``` -We can also supply parameters to the generator like [so](/examples/csharp-examples/attribute-based-parameter-comparison/PositiveAndNegativeUtilizingIntegerRangeAttribute.cs): +We can also supply parameters to the generator like [so](/examples/Hedgehog.Xunit.Examples.CSharp/attribute-based-parameter-comparison/PositiveAndNegativeUtilizingIntegerRangeAttribute.cs): ```F# //Using a parameterised attribute to configure the generators diff --git a/src/Hedgehog.Xunit/Hedgehog.Xunit.fsproj b/src/Hedgehog.Xunit/Hedgehog.Xunit.fsproj index 60fe9fa..feef473 100644 --- a/src/Hedgehog.Xunit/Hedgehog.Xunit.fsproj +++ b/src/Hedgehog.Xunit/Hedgehog.Xunit.fsproj @@ -2,7 +2,7 @@ true - netstandard2.1 + net6.0 true true true @@ -44,7 +44,7 @@ Docs at https://github.com/dharmaturtle/fsharp-hedgehog-xunit - <_Parameter1>$(AssemblyName).Tests + <_Parameter1>$(AssemblyName).Tests.FSharp diff --git a/tests/Hedgehog.Xunit.CSharp.Tests/Async.cs b/tests/Hedgehog.Xunit.Tests.CSharp/Async.cs similarity index 90% rename from tests/Hedgehog.Xunit.CSharp.Tests/Async.cs rename to tests/Hedgehog.Xunit.Tests.CSharp/Async.cs index 15c7360..8d23964 100644 --- a/tests/Hedgehog.Xunit.CSharp.Tests/Async.cs +++ b/tests/Hedgehog.Xunit.Tests.CSharp/Async.cs @@ -1,4 +1,4 @@ -namespace Hedgehog.Xunit.CSharp.Tests; +namespace Hedgehog.Xunit.Tests.CSharp; public class Async { diff --git a/tests/Hedgehog.Xunit.CSharp.Tests/Hedgehog.Xunit.CSharp.Tests.csproj b/tests/Hedgehog.Xunit.Tests.CSharp/Hedgehog.Xunit.Tests.CSharp.csproj similarity index 100% rename from tests/Hedgehog.Xunit.CSharp.Tests/Hedgehog.Xunit.CSharp.Tests.csproj rename to tests/Hedgehog.Xunit.Tests.CSharp/Hedgehog.Xunit.Tests.CSharp.csproj diff --git a/tests/Hedgehog.Xunit.CSharp.Tests/Usings.cs b/tests/Hedgehog.Xunit.Tests.CSharp/Usings.cs similarity index 100% rename from tests/Hedgehog.Xunit.CSharp.Tests/Usings.cs rename to tests/Hedgehog.Xunit.Tests.CSharp/Usings.cs diff --git a/tests/Hedgehog.Xunit.Tests/Hedgehog.Xunit.Tests.fsproj b/tests/Hedgehog.Xunit.Tests.FSharp/Hedgehog.Xunit.Tests.FSharp.fsproj similarity index 100% rename from tests/Hedgehog.Xunit.Tests/Hedgehog.Xunit.Tests.fsproj rename to tests/Hedgehog.Xunit.Tests.FSharp/Hedgehog.Xunit.Tests.FSharp.fsproj diff --git a/tests/Hedgehog.Xunit.Tests/PropertyTests.fs b/tests/Hedgehog.Xunit.Tests.FSharp/PropertyTests.fs similarity index 98% rename from tests/Hedgehog.Xunit.Tests/PropertyTests.fs rename to tests/Hedgehog.Xunit.Tests.FSharp/PropertyTests.fs index 68bf7f0..2ad1e3c 100644 --- a/tests/Hedgehog.Xunit.Tests/PropertyTests.fs +++ b/tests/Hedgehog.Xunit.Tests.FSharp/PropertyTests.fs @@ -1,4 +1,4 @@ -namespace Hedgehog.Xunit.Tests +namespace Hedgehog.Xunit.Tests.FSharp open Xunit open System @@ -221,7 +221,7 @@ module ``Property module with AutoGenConfig tests`` = let ``Instance property fails`` () = let testMethod = typeof.DeclaringType.GetMethod(nameof ``Instance property fails, skipped``) let e = Assert.Throws(fun () -> InternalLogic.parseAttributes testMethod typeof.DeclaringType |> ignore) - Assert.Equal("Hedgehog.Xunit.Tests.Property module with AutoGenConfig tests+FailingTests+NonstaticProperty must have exactly one public static property that returns an AutoGenConfig. + Assert.Equal("Hedgehog.Xunit.Tests.FSharp.Property module with AutoGenConfig tests+FailingTests+NonstaticProperty must have exactly one public static property that returns an AutoGenConfig. An example type definition: @@ -237,7 +237,7 @@ type NonstaticProperty = let ``Non AutoGenConfig static property fails`` () = let testMethod = typeof.DeclaringType.GetMethod(nameof ``Non AutoGenConfig static property fails, skipped``) let e = Assert.Throws(fun () -> InternalLogic.parseAttributes testMethod typeof.DeclaringType |> ignore) - Assert.Equal("Hedgehog.Xunit.Tests.Property module with AutoGenConfig tests+FailingTests+NonAutoGenConfig must have exactly one public static property that returns an AutoGenConfig. + Assert.Equal("Hedgehog.Xunit.Tests.FSharp.Property module with AutoGenConfig tests+FailingTests+NonAutoGenConfig must have exactly one public static property that returns an AutoGenConfig. An example type definition: