Example #1
0
        /// <summary>
        /// calculates the power balance of string data type power
        /// </summary>
        public void TeestCalculatePowerBalance()
        {
            //Assemble
            List <string> power = new List <string>()
            {
                "122.33", "91.55", "94.11"
            };
            double expectedResult = 102.66;
            //Act
            double actualResult = Summary.CalculatePowerBalance(power);

            //Assert
            Assert.AreEqual(expectedResult, Summary.roundOff(actualResult));
        }