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) 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();