Skip to content

Commit aa84de4

Browse files
committed
Added CleanReqnrollProject/CleanReqnrollProject.Net8.NUnitFw
1 parent 4a639e4 commit aa84de4

File tree

6 files changed

+77
-0
lines changed

6 files changed

+77
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<ImplicitUsings>enable</ImplicitUsings>
5+
<Nullable>enable</Nullable>
6+
<OutputType>Exe</OutputType>
7+
<TargetFramework>net8.0</TargetFramework>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<PackageReference Include="Reqnroll.TUnit" Version="3.0.0-local" />
12+
<PackageReference Include="TUnit" Version="0.25.21" />
13+
</ItemGroup>
14+
15+
<ItemGroup>
16+
<ProjectReference Include="..\ExternalStepDefs\ExternalStepDefs.csproj" />
17+
</ItemGroup>
18+
19+
</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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
global using Reqnroll;
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
namespace CleanReqnrollProject.StepDefinitions;
2+
3+
[Binding]
4+
public sealed class CalculatorStepDefinitions(IReqnrollOutputHelper outputHelper)
5+
{
6+
[Given("the first number is {int}")]
7+
public void GivenTheFirstNumberIs(int number)
8+
{
9+
}
10+
11+
[Given("the second number is {int}")]
12+
public void GivenTheSecondNumberIs(int number)
13+
{
14+
}
15+
16+
[When("the two numbers are added")]
17+
public void WhenTheTwoNumbersAreAdded()
18+
{
19+
outputHelper.WriteLine("numbers added");
20+
}
21+
22+
[Then("the result should be {int}")]
23+
public void ThenTheResultShouldBe(int result)
24+
{
25+
}
26+
}
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
@@ -27,6 +27,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanReqnrollProject.Net8.X
2727
EndProject
2828
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanReqnrollProject.Net9", "CleanReqnrollProject.Net9\CleanReqnrollProject.Net9.csproj", "{E170C115-698C-4771-A665-8BCD7AFBA274}"
2929
EndProject
30+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CleanReqnrollProject.Net8.TUnitFw", "CleanReqnrollProject.Net8.TUnitFw\CleanReqnrollProject.Net8.TUnitFw.csproj", "{1D77726F-4A43-357D-19D4-55512794971C}"
31+
EndProject
3032
Global
3133
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3234
Debug|Any CPU = Debug|Any CPU
@@ -81,6 +83,10 @@ Global
8183
{E170C115-698C-4771-A665-8BCD7AFBA274}.Debug|Any CPU.Build.0 = Debug|Any CPU
8284
{E170C115-698C-4771-A665-8BCD7AFBA274}.Release|Any CPU.ActiveCfg = Release|Any CPU
8385
{E170C115-698C-4771-A665-8BCD7AFBA274}.Release|Any CPU.Build.0 = Release|Any CPU
86+
{1D77726F-4A43-357D-19D4-55512794971C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
87+
{1D77726F-4A43-357D-19D4-55512794971C}.Debug|Any CPU.Build.0 = Debug|Any CPU
88+
{1D77726F-4A43-357D-19D4-55512794971C}.Release|Any CPU.ActiveCfg = Release|Any CPU
89+
{1D77726F-4A43-357D-19D4-55512794971C}.Release|Any CPU.Build.0 = Release|Any CPU
8490
EndGlobalSection
8591
GlobalSection(SolutionProperties) = preSolution
8692
HideSolutionNode = FALSE

0 commit comments

Comments
 (0)