From bb1441ae609ae14544899da157f40b8ea2ad4b95 Mon Sep 17 00:00:00 2001 From: magnus195 <22998711+magnus195@users.noreply.github.com> Date: Tue, 7 Jan 2025 13:45:40 +0100 Subject: [PATCH 1/4] Added class fields to make unit tests pass --- csharp-fundamentals-class-members.Main/Core.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/csharp-fundamentals-class-members.Main/Core.cs b/csharp-fundamentals-class-members.Main/Core.cs index 855e8da..1691980 100644 --- a/csharp-fundamentals-class-members.Main/Core.cs +++ b/csharp-fundamentals-class-members.Main/Core.cs @@ -20,31 +20,31 @@ public class Core //TODO: 1. Create an integer member named age with a value of 32 - public int age = 33; + public int age = 32; //TODO: 2. Create a String member named firstName with a value of "Jane" - + public string firstName = "Jane"; //TODO: 3. Create a boolean member named isProgrammer with a value of true - + public bool isProgrammer = true; //TODO: 4. Change the value below so that the tests pass. Check the README.md file for instructions on // running and reading tests - public int firstNumber = 109; + public int firstNumber = 9182; //TODO: 5. Change the value below so that the tests pass - public string firstString = "Ruby is to Python what car is to carpet."; + public string firstString = "Java is to Javascript what car is to carpet."; //TODO: 6. Change the visibility below so that the tests pass - private bool isVisible = true; + public bool isVisible = true; } } From c496e4e7d3fdeebfb22a77eafeffae9f8b56a128 Mon Sep 17 00:00:00 2001 From: magnus195 <22998711+magnus195@users.noreply.github.com> Date: Tue, 7 Jan 2025 13:48:02 +0100 Subject: [PATCH 2/4] Bump GH Actions Dotnet version to 9.0.x --- .github/workflows/standard-criteria-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/standard-criteria-tests.yml b/.github/workflows/standard-criteria-tests.yml index 54bb2f1..7a54ec3 100644 --- a/.github/workflows/standard-criteria-tests.yml +++ b/.github/workflows/standard-criteria-tests.yml @@ -14,7 +14,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v1 with: - dotnet-version: '8.0.x' + dotnet-version: '9.0.x' # 3) Restore the dependencies and tools of a project or solution. - name: Install dependencies run: dotnet restore From 20677009c5bfb101740acf519eb8b6980a1a9b08 Mon Sep 17 00:00:00 2001 From: magnus195 <22998711+magnus195@users.noreply.github.com> Date: Tue, 7 Jan 2025 13:45:40 +0100 Subject: [PATCH 3/4] Added class fields to make unit tests pass Signed-off-by: magnus195 <22998711+magnus195@users.noreply.github.com> --- csharp-fundamentals-class-members.Main/Core.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/csharp-fundamentals-class-members.Main/Core.cs b/csharp-fundamentals-class-members.Main/Core.cs index 855e8da..1691980 100644 --- a/csharp-fundamentals-class-members.Main/Core.cs +++ b/csharp-fundamentals-class-members.Main/Core.cs @@ -20,31 +20,31 @@ public class Core //TODO: 1. Create an integer member named age with a value of 32 - public int age = 33; + public int age = 32; //TODO: 2. Create a String member named firstName with a value of "Jane" - + public string firstName = "Jane"; //TODO: 3. Create a boolean member named isProgrammer with a value of true - + public bool isProgrammer = true; //TODO: 4. Change the value below so that the tests pass. Check the README.md file for instructions on // running and reading tests - public int firstNumber = 109; + public int firstNumber = 9182; //TODO: 5. Change the value below so that the tests pass - public string firstString = "Ruby is to Python what car is to carpet."; + public string firstString = "Java is to Javascript what car is to carpet."; //TODO: 6. Change the visibility below so that the tests pass - private bool isVisible = true; + public bool isVisible = true; } } From b0d8e8f6948dac467b1e763131f613cbdfe0a629 Mon Sep 17 00:00:00 2001 From: magnus195 <22998711+magnus195@users.noreply.github.com> Date: Tue, 7 Jan 2025 13:48:02 +0100 Subject: [PATCH 4/4] Bump GH Actions Dotnet version to 9.0.x Signed-off-by: magnus195 <22998711+magnus195@users.noreply.github.com> --- .github/workflows/standard-criteria-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/standard-criteria-tests.yml b/.github/workflows/standard-criteria-tests.yml index 54bb2f1..7a54ec3 100644 --- a/.github/workflows/standard-criteria-tests.yml +++ b/.github/workflows/standard-criteria-tests.yml @@ -14,7 +14,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v1 with: - dotnet-version: '8.0.x' + dotnet-version: '9.0.x' # 3) Restore the dependencies and tools of a project or solution. - name: Install dependencies run: dotnet restore