public void IsMonotonicTest_223ReturnTrue() { // arrange var LCSolution = new LCProgram(); var expected = true; // act int[] inArray = new int[] { 2, 2, 3 }; var actual = LCSolution.IsMonotonic(inArray); // assert Assert.AreEqual(expected, actual); }
public void IsMonotonicTest_132ReturnFalse() { // arrange var LCSolution = new LCProgram(); var expected = false; // act int[] inArray = new int[] { 1, 3, 2 }; var actual = LCSolution.IsMonotonic(inArray); // assert Assert.AreEqual(expected, actual); }