public void MeanTest_Mean_minus10and10and5() { // arrange double[] arr = { -10, 10, 3 }; double expected = 1; var calc = new CalculatorLib.Calculator(); // act double actual = calc.Mean(arr); // assert Assert.Equal(expected, actual); }
public void MeanTest_Mean0And1() { // arrange double[] arr = { 0, 1 }; double expected = 0.5; var calc = new CalculatorLib.Calculator(); // act double actual = calc.Mean(arr); // assert Assert.Equal(expected, actual); }