public void Should_Return_Spent_Money_With_Cigarrets(double cigarettesPerDay, double cigarettesPrice, double years, double amount) { //Given var exercise7 = new Exercise7(); //When var result = exercise7.SpentMoneyWithCigarrets(cigarettesPerDay, cigarettesPrice, years); //Then Assert.Equal(amount, result); }
public void Should_Return_How_Many_Times_A_Number_Is_In_The_Same_Position_As_Itsself_Value(int[] numbers, int expectedResult) { //Given var exercise7 = new Exercise7(); //When var result = exercise7.ValuedEqualPlacedInArray(numbers); //Then Assert.Equal(expectedResult, result); }