public void TestSmallest_WihiteSizeOne() { // Assable TTDPrograms tDDPrograms = new TTDPrograms(); int[] arr = { 4 }; int expextedValu = 4; // Act int actualValue = tDDPrograms.Smallest(arr); // Assert Assert.AreEqual(expextedValu, actualValue); }
public void TestSmallest() { // Assable TTDPrograms tDDPrograms = new TTDPrograms(); int[] arr = { 4, 5, 1, 7 }; int expextedValu = 1; // Act int actualValue = tDDPrograms.Smallest(arr); // Assert Assert.AreEqual(expextedValu, actualValue); }