Example #1
0
        public void TempCalculationEngine_AtThreshold()
        {
            // arrange
            TempCalculationEngine engine = new TempCalculationEngine(testTemps);

            // act
            int result = engine.TempsAtThreshold(30);

            // assert
            Assert.AreEqual(1, result);
        }
Example #2
0
        public void TempCalculationEngine_Number()
        {
            // arrange
            TempCalculationEngine engine = new TempCalculationEngine(testTemps);

            // act
            int result = engine.NumberOfTemperatures();

            // assert
            Assert.AreEqual(7, result);
        }
Example #3
0
        public void TempCalculationEngine_AverageTemp()
        {
            // arrange
            TempCalculationEngine engine = new TempCalculationEngine(testTemps);

            // act
            int result = engine.AverageTemperature();

            // assert
            Assert.AreEqual(40, result);
        }