From 9083ee6a7a66015f4a970e148f216f4e70984a49 Mon Sep 17 00:00:00 2001 From: GavinO0745 Date: Wed, 25 Mar 2026 15:39:58 -0500 Subject: [PATCH 1/6] Update ci.yml --- .github/workflows/ci.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64db9d16..50915586 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: 'Run App , ' +name: 'Run App Olsen, Gavin' on: [push, pull_request] @@ -6,4 +6,12 @@ jobs: build-and-test: runs-on: ubuntu-latest steps: - - run: echo "Hello, World!" + - uses: actions/checkout@v2 + - name: install dotnet + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.x' + - name: build + run: dotnet build + - name: run unit tests + run: dotnet test From 470f0fbfb4dad1d64b8d1c5a3a4f52b8828c8e20 Mon Sep 17 00:00:00 2001 From: GavinO0745 Date: Wed, 25 Mar 2026 15:43:53 -0500 Subject: [PATCH 2/6] Update ci.yml --- .github/workflows/ci.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64db9d16..50915586 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: 'Run App , ' +name: 'Run App Olsen, Gavin' on: [push, pull_request] @@ -6,4 +6,12 @@ jobs: build-and-test: runs-on: ubuntu-latest steps: - - run: echo "Hello, World!" + - uses: actions/checkout@v2 + - name: install dotnet + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.x' + - name: build + run: dotnet build + - name: run unit tests + run: dotnet test From f095e43cf45f9a6aa42352f6602f574da80fbc10 Mon Sep 17 00:00:00 2001 From: GavinO0745 Date: Wed, 25 Mar 2026 15:44:36 -0500 Subject: [PATCH 3/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7400b87d..2d9b72a6 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [![Run App](https://github.com/kgerot/GithubActions/actions/workflows/run-app.yaml/badge.svg)](https://github.com/kgerot/GithubActions/actions/workflows/run-app.yaml) # Do not submit a pull request to `kgerot/GithubActions` or `dteske/TraviCI`. Not following this instruction can ruin the lab for others, so pay attention. - +. I receive around 60 pull requests every semester and have to manually delete each request and action run. Your actions will automatically fail if you open a pull request # Github Actions Lab From 0dc56351af782979059f45ff189199a57f86e89b Mon Sep 17 00:00:00 2001 From: GavinO0745 Date: Wed, 25 Mar 2026 15:47:43 -0500 Subject: [PATCH 4/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2d9b72a6..5c68633d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Run App](https://github.com/kgerot/GithubActions/actions/workflows/run-app.yaml/badge.svg)](https://github.com/kgerot/GithubActions/actions/workflows/run-app.yaml) +image # Do not submit a pull request to `kgerot/GithubActions` or `dteske/TraviCI`. Not following this instruction can ruin the lab for others, so pay attention. . From 5bc3c05312cd07f985c194d867328d08e72292a5 Mon Sep 17 00:00:00 2001 From: GavinO0745 Date: Wed, 25 Mar 2026 15:48:29 -0500 Subject: [PATCH 5/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5c68633d..0c46c7b9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -image +[![Run App Olsen, Gavin](https://github.com/GavinO0745/GithubActions/actions/workflows/ci.yml/badge.svg)](https://github.com/GavinO0745/GithubActions/actions/workflows/ci.yml) # Do not submit a pull request to `kgerot/GithubActions` or `dteske/TraviCI`. Not following this instruction can ruin the lab for others, so pay attention. . From b16c0a0b7f0bd9e8bd859789496c67538711e77b Mon Sep 17 00:00:00 2001 From: GavinO0745 Date: Wed, 25 Mar 2026 15:56:49 -0500 Subject: [PATCH 6/6] Update UnitTests.cs --- Tests/UnitTests.cs | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Tests/UnitTests.cs b/Tests/UnitTests.cs index a2d3bd18..e71e7975 100644 --- a/Tests/UnitTests.cs +++ b/Tests/UnitTests.cs @@ -26,4 +26,32 @@ public void Add_Null_Patino() Assert.ThrowsException(() => Program.Add(null, "1")); Assert.ThrowsException(() => Program.Add(null, null)); } + +[TestMethod] +public void Subtract_Valid() +{ + Assert.AreEqual(1, Program.Subtract("3", "2")); + Assert.AreEqual(0, Program.Subtract("2", "2")); +} + +[TestMethod] +public void Multiply_Valid() +{ + Assert.AreEqual(20, Program.Multiply("5", "2")); // WRONG ON PURPOSE +} + +[TestMethod] +public void Divide_Valid() +{ + Assert.AreEqual(2, Program.Divide("6", "3")); + Assert.AreEqual(5, Program.Divide("10", "2")); +} + +[TestMethod] +public void Power_Valid() +{ + Assert.AreEqual(8, Program.Power("2", "3")); + Assert.AreEqual(9, Program.Power("3", "2")); +} + }