public void RightLengthForSmallChild()
        {
            const int age        = 4;
            const int bodyLength = 105;
            var       length     = SkiLengthCalculator.CalculateLengthChild(age, bodyLength);

            Assert.AreEqual(bodyLength, length);
        }
        public void RightLengthForOlderChild()
        {
            const int age        = 8;
            const int bodyLength = 130;
            var       length     = SkiLengthCalculator.CalculateLengthChild(age, bodyLength);

            Assert.True(length >= bodyLength + 10 && length <= bodyLength + 20);
        }
示例#3
0
 public int GetSkiLengthChild(int age, int bodyLength)
 {
     return(SkiLengthCalculator.CalculateLengthChild(age, bodyLength));
 }