Skip to content

Commit e6af4ac

Browse files
committed
Add CleanReqnrollProject.Net9
1 parent 466e1dc commit e6af4ac

File tree

6 files changed

+77
-0
lines changed

6 files changed

+77
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net9.0</TargetFramework>
5+
<Nullable>enable</Nullable>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
11+
<PackageReference Include="Reqnroll.NUnit" Version="2.2.2-local" />
12+
<PackageReference Include="nunit" Version="3.14.0" />
13+
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
14+
</ItemGroup>
15+
16+
<ItemGroup>
17+
<ProjectReference Include="..\ExternalStepDefs\ExternalStepDefs.csproj" />
18+
</ItemGroup>
19+
20+
</Project>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#language: en
2+
Feature: Calculator
3+
4+
@mytag
5+
Scenario: Add two numbers
6+
Given the first number is 50
7+
And the second number is 70
8+
When the two numbers are added
9+
Then the result should be 120
10+
And external step definitions 4 Reqnroll work
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
global using NUnit;
2+
global using Reqnroll;
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
namespace CleanReqnrollProject.StepDefinitions;
2+
[Binding]
3+
public sealed class CalculatorStepDefinitions
4+
{
5+
[Given("the first number is {int}")]
6+
public void GivenTheFirstNumberIs(int number)
7+
{
8+
}
9+
10+
[Given("the second number is {int}")]
11+
public void GivenTheSecondNumberIs(int number)
12+
{
13+
}
14+
15+
[When("the two numbers are added")]
16+
public void WhenTheTwoNumbersAreAdded()
17+
{
18+
}
19+
20+
[Then("the result should be {int}")]
21+
public void ThenTheResultShouldBe(int result)
22+
{
23+
}
24+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "https://schemas.reqnroll.net/reqnroll-config-latest.json",
3+
4+
"language": {
5+
"feature": "hu-HU"
6+
},
7+
"runtime": {
8+
"stopAtFirstError": true
9+
},
10+
"bindingAssemblies": [
11+
{
12+
"assembly": "ExternalStepDefs"
13+
}
14+
]
15+
}

CleanReqnrollProject/CleanReqnrollProject.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanReqnrollProject.Net8.N
2525
EndProject
2626
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanReqnrollProject.Net8.XunitFw", "CleanReqnrollProject.Net8.XunitFw\CleanReqnrollProject.Net8.XunitFw.csproj", "{447CBEAF-EF84-4F48-BFD6-189166A37C8A}"
2727
EndProject
28+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanReqnrollProject.Net9", "CleanReqnrollProject.Net9\CleanReqnrollProject.Net9.csproj", "{E170C115-698C-4771-A665-8BCD7AFBA274}"
29+
EndProject
2830
Global
2931
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3032
Debug|Any CPU = Debug|Any CPU
@@ -75,6 +77,10 @@ Global
7577
{447CBEAF-EF84-4F48-BFD6-189166A37C8A}.Debug|Any CPU.Build.0 = Debug|Any CPU
7678
{447CBEAF-EF84-4F48-BFD6-189166A37C8A}.Release|Any CPU.ActiveCfg = Release|Any CPU
7779
{447CBEAF-EF84-4F48-BFD6-189166A37C8A}.Release|Any CPU.Build.0 = Release|Any CPU
80+
{E170C115-698C-4771-A665-8BCD7AFBA274}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
81+
{E170C115-698C-4771-A665-8BCD7AFBA274}.Debug|Any CPU.Build.0 = Debug|Any CPU
82+
{E170C115-698C-4771-A665-8BCD7AFBA274}.Release|Any CPU.ActiveCfg = Release|Any CPU
83+
{E170C115-698C-4771-A665-8BCD7AFBA274}.Release|Any CPU.Build.0 = Release|Any CPU
7884
EndGlobalSection
7985
GlobalSection(SolutionProperties) = preSolution
8086
HideSolutionNode = FALSE

0 commit comments

Comments
 (0)