public void ShouldExample1Test2() { //Declare Input Array int[] arrayOfInts = new int[1] { 101 }; //Run Method int actualResult = ExampleMethods.Example1(arrayOfInts, 1); //Check if expected and actual results match Assert.That(actualResult, Is.EqualTo(101)); }
public void ShouldExample1Test1() { //Declare Input Array int[] arrayOfInts = new int[10] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; //Run Method int actualResult = ExampleMethods.Example1(arrayOfInts, 10); //Check if expected and actual results match Assert.That(actualResult, Is.EqualTo(1)); }