From 88c8e60efa44507949f0e7f855bb046db680f55c Mon Sep 17 00:00:00 2001 From: Kyle J Turpin Date: Sun, 12 Jul 2026 12:16:09 -0500 Subject: [PATCH] Establishing project outline properly by adding necessary files --- Demo/Demo.csproj | 10 +++++ Demo/Program.cs | 3 ++ EoM_Redux.Tests/.gitignore | 1 + EoM_Redux.Tests/EoM_Redux.Tests.csproj | 15 +++++++ EoM_Redux.Tests/Features/Calculator.feature | 10 +++++ .../CalculatorStepDefinitions.cs | 45 +++++++++++++++++++ EoM_Redux.slnx | 5 +++ EoM_Redux/Class1.cs | 5 +++ EoM_Redux/EoM_Redux.csproj | 9 ++++ 9 files changed, 103 insertions(+) create mode 100644 Demo/Demo.csproj create mode 100644 Demo/Program.cs create mode 100644 EoM_Redux.Tests/.gitignore create mode 100644 EoM_Redux.Tests/EoM_Redux.Tests.csproj create mode 100644 EoM_Redux.Tests/Features/Calculator.feature create mode 100644 EoM_Redux.Tests/StepDefinitions/CalculatorStepDefinitions.cs create mode 100644 EoM_Redux.slnx create mode 100644 EoM_Redux/Class1.cs create mode 100644 EoM_Redux/EoM_Redux.csproj diff --git a/Demo/Demo.csproj b/Demo/Demo.csproj new file mode 100644 index 0000000..2f4fc77 --- /dev/null +++ b/Demo/Demo.csproj @@ -0,0 +1,10 @@ + + + + Exe + net8.0 + enable + enable + + + diff --git a/Demo/Program.cs b/Demo/Program.cs new file mode 100644 index 0000000..139ec4e --- /dev/null +++ b/Demo/Program.cs @@ -0,0 +1,3 @@ +// See https://aka.ms/new-console-template for more information + +Console.WriteLine("Hello, World!"); diff --git a/EoM_Redux.Tests/.gitignore b/EoM_Redux.Tests/.gitignore new file mode 100644 index 0000000..d57550c --- /dev/null +++ b/EoM_Redux.Tests/.gitignore @@ -0,0 +1 @@ +*.feature.cs \ No newline at end of file diff --git a/EoM_Redux.Tests/EoM_Redux.Tests.csproj b/EoM_Redux.Tests/EoM_Redux.Tests.csproj new file mode 100644 index 0000000..be2e94c --- /dev/null +++ b/EoM_Redux.Tests/EoM_Redux.Tests.csproj @@ -0,0 +1,15 @@ + + + + net8.0 + + + + + + + + + + + diff --git a/EoM_Redux.Tests/Features/Calculator.feature b/EoM_Redux.Tests/Features/Calculator.feature new file mode 100644 index 0000000..9a7bd21 --- /dev/null +++ b/EoM_Redux.Tests/Features/Calculator.feature @@ -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 \ No newline at end of file diff --git a/EoM_Redux.Tests/StepDefinitions/CalculatorStepDefinitions.cs b/EoM_Redux.Tests/StepDefinitions/CalculatorStepDefinitions.cs new file mode 100644 index 0000000..846beac --- /dev/null +++ b/EoM_Redux.Tests/StepDefinitions/CalculatorStepDefinitions.cs @@ -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(); + } +} diff --git a/EoM_Redux.slnx b/EoM_Redux.slnx new file mode 100644 index 0000000..561cd0c --- /dev/null +++ b/EoM_Redux.slnx @@ -0,0 +1,5 @@ + + + + + diff --git a/EoM_Redux/Class1.cs b/EoM_Redux/Class1.cs new file mode 100644 index 0000000..a7ef8d1 --- /dev/null +++ b/EoM_Redux/Class1.cs @@ -0,0 +1,5 @@ +namespace EoM_Redux; + +public class Class1 +{ +} diff --git a/EoM_Redux/EoM_Redux.csproj b/EoM_Redux/EoM_Redux.csproj new file mode 100644 index 0000000..3a63532 --- /dev/null +++ b/EoM_Redux/EoM_Redux.csproj @@ -0,0 +1,9 @@ + + + + net8.0 + enable + enable + + +