From f5b7280fdc3d45d4b3bcb4347dfcd30a46de048f Mon Sep 17 00:00:00 2001 From: Laurent Ellerbach Date: Tue, 22 Oct 2024 13:54:23 +0200 Subject: [PATCH 1/3] adding a test to see how a fork behave --- UnitTestStream/SuperTests.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/UnitTestStream/SuperTests.cs b/UnitTestStream/SuperTests.cs index 83c5c6f..7b161f2 100644 --- a/UnitTestStream/SuperTests.cs +++ b/UnitTestStream/SuperTests.cs @@ -33,6 +33,19 @@ public void TestSubtract() Assert.AreEqual(1, result); } + [TestMethod] + public void TestMultiply() + { + // Arrange + TestStream testStream = new TestStream(); + + // Act + int result = testStream.Multiply(2, 3); + + //Assert + Assert.AreEqual(6, result); + } + [TestMethod] [DataRow(4)] public void TestOpenPinBlinkAndClose(int pinNumber) From 2d2b4ce6c12adb1e64a42118e803be26936f0621 Mon Sep 17 00:00:00 2001 From: Laurent Ellerbach Date: Tue, 22 Oct 2024 13:58:18 +0200 Subject: [PATCH 2/3] adjusting for variable --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ce4c58a..593aea5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,10 +23,10 @@ jobs: - name: Trigger Azure DevOps Pipeline env: - AZURE_DEVOPS_ORG: ${{ vars.AZURE_DEVOPS_ORG }} + AZURE_DEVOPS_ORG: nanoframework AZURE_DEVOPS_PROJECT: nanoFramework.IoT.TestStream AZURE_DEVOPS_PIPELINE_ID: 111 - AZURE_POOL_NAME: ${{ vars.AZURE_POOL_NAME }} + AZURE_POOL_NAME: TestStream GITHUB_HEAD_REF: ${{ github.head_ref }} run: | # Validate required environment variables From ec698b3e9e4282e3e05f0455c0a3b7060b8e664f Mon Sep 17 00:00:00 2001 From: Laurent Ellerbach Date: Wed, 23 Oct 2024 08:25:11 +0200 Subject: [PATCH 3/3] adding multiply for test --- nanoFramework.IoT.TestStream/TestStream.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nanoFramework.IoT.TestStream/TestStream.cs b/nanoFramework.IoT.TestStream/TestStream.cs index b511dcd..d78d205 100644 --- a/nanoFramework.IoT.TestStream/TestStream.cs +++ b/nanoFramework.IoT.TestStream/TestStream.cs @@ -9,6 +9,8 @@ public class TestStream public int Subtract(int a, int b) => a - b; + public int Multiply(int a, int b) => a * b; + public void OpenPinBlinkAndClose(int pinNumber) { GpioController gpioController = new GpioController();