public void Should_Return_How_Many_Positive_Numbers_There_Are_In_Array(double[] numbers, int expectedResult) { //Given var exercise5 = new Exercise5(); //When var result = exercise5.CountPositivePositions(numbers); //Then Assert.Equal(expectedResult, result); }
public void Should_Return_An_Percentage_Of_Women_Between_18_and_35_Years() { //Given var exercise5 = new Exercise5(); var womenAges = new int[5] { 20, 18, 65, 34, 60 }; //When var result = exercise5.womensAgeBetween18and35(womenAges); //Then Assert.Equal(60, result); }