Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions UnitTestStream/SuperTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions nanoFramework.IoT.TestStream/TestStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down