Establishing project outline properly by adding necessary files
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,3 @@
|
||||
// See https://aka.ms/new-console-template for more information
|
||||
|
||||
Console.WriteLine("Hello, World!");
|
||||
@@ -0,0 +1 @@
|
||||
*.feature.cs
|
||||
@@ -0,0 +1,15 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0"/>
|
||||
<PackageReference Include="Reqnroll.NUnit" Version="3.0.1"/>
|
||||
<PackageReference Include="nunit" Version="4.0.1"/>
|
||||
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0"/>
|
||||
<PackageReference Include="FluentAssertions" Version="6.12.0"/>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,10 @@
|
||||
Feature: Calculator
|
||||
|
||||
Simple calculator for adding two numbers
|
||||
|
||||
@mytag
|
||||
Scenario: Add two numbers
|
||||
Given the first number is 50
|
||||
And the second number is 70
|
||||
When the two numbers are added
|
||||
Then the result should be 120
|
||||
@@ -0,0 +1,45 @@
|
||||
using Reqnroll;
|
||||
|
||||
namespace EoM_Redux.Tests.StepDefinitions;
|
||||
|
||||
[Binding]
|
||||
public sealed class CalculatorStepDefinitions
|
||||
{
|
||||
// For additional details on Reqnroll step definitions see https://go.reqnroll.net/doc-stepdef
|
||||
|
||||
[Given("the first number is {int}")]
|
||||
public void GivenTheFirstNumberIs(int number)
|
||||
{
|
||||
//TODO: implement arrange (precondition) logic
|
||||
// For storing and retrieving scenario-specific data see https://go.reqnroll.net/doc-sharingdata
|
||||
// To use the multiline text or the table argument of the scenario,
|
||||
// additional string/DataTable parameters can be defined on the step definition
|
||||
// method.
|
||||
|
||||
throw new PendingStepException();
|
||||
}
|
||||
|
||||
[Given("the second number is {int}")]
|
||||
public void GivenTheSecondNumberIs(int number)
|
||||
{
|
||||
//TODO: implement arrange (precondition) logic
|
||||
|
||||
throw new PendingStepException();
|
||||
}
|
||||
|
||||
[When("the two numbers are added")]
|
||||
public void WhenTheTwoNumbersAreAdded()
|
||||
{
|
||||
//TODO: implement act (action) logic
|
||||
|
||||
throw new PendingStepException();
|
||||
}
|
||||
|
||||
[Then("the result should be {int}")]
|
||||
public void ThenTheResultShouldBe(int result)
|
||||
{
|
||||
//TODO: implement assert (verification) logic
|
||||
|
||||
throw new PendingStepException();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
<Solution>
|
||||
<Project Path="Demo/Demo.csproj" />
|
||||
<Project Path="EoM_Redux.Tests/EoM_Redux.Tests.csproj" />
|
||||
<Project Path="EoM_Redux/EoM_Redux.csproj" />
|
||||
</Solution>
|
||||
@@ -0,0 +1,5 @@
|
||||
namespace EoM_Redux;
|
||||
|
||||
public class Class1
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user