Пример #1
0
        public void ColorOfFirTreeIsGreen()
        {
            //arrange
            FirTree firTree = new FirTree();

            //act

            //assert
            Assert.AreEqual(TreeColor.Green, firTree.Color);
        }
Пример #2
0
        public void FirTreeBornAndGrow()
        {
            //arrange
            FirTree firTree = new FirTree();

            //act
            firTree.GrowUp(10.0);

            //assert
            Assert.AreEqual(10.0 , firTree.Height);
        }
Пример #3
0
        public void ChangeGrowingSpeed()
        {
            //arrange
            FirTree firTree = new FirTree();

            //act
            firTree.GrowUp(10.0);
            firTree.GrowingSpeed = 1.3;
            firTree.GrowUp();

            //assert
            Assert.AreEqual(11.3, firTree.Height);
        }