public AveragingCalculatorTestShould(Mother mother) { // Arrange averageCalculator = new AveragingCalculator(); measurements = mother.Get4Measurements(); // Act result = averageCalculator.Aggregate(measurements); }
public void CalculateCorrectLowAverage(double high1, double high2, double highAvg, double low1, double low2, double lowAvg) { // Arrange var averageCalculator = new AveragingCalculator(); var measurements = MakeMeasurements(high1, high2, low1, low2); // Act var result = averageCalculator.Aggregate(measurements); // Assert Assert.Equal(lowAvg, result.LowValue); }
public void SetupTest() { averagingCalculator = new AveragingCalculator(); measurements = Mother.Get4Measurements(); result = averagingCalculator.Aggregate(measurements); }
public void SetUp() { averagingCalculator = new AveragingCalculator(); }