public void ColorOfFirTreeIsGreen() { //arrange FirTree firTree = new FirTree(); //act //assert Assert.AreEqual(TreeColor.Green, firTree.Color); }
public void FirTreeBornAndGrow() { //arrange FirTree firTree = new FirTree(); //act firTree.GrowUp(10.0); //assert Assert.AreEqual(10.0 , firTree.Height); }
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); }