public void TempCalculationEngine_AtThreshold() { // arrange TempCalculationEngine engine = new TempCalculationEngine(testTemps); // act int result = engine.TempsAtThreshold(30); // assert Assert.AreEqual(1, result); }
public void TempCalculationEngine_Number() { // arrange TempCalculationEngine engine = new TempCalculationEngine(testTemps); // act int result = engine.NumberOfTemperatures(); // assert Assert.AreEqual(7, result); }
public void TempCalculationEngine_AverageTemp() { // arrange TempCalculationEngine engine = new TempCalculationEngine(testTemps); // act int result = engine.AverageTemperature(); // assert Assert.AreEqual(40, result); }