Ejemplo n.º 1
0
        public void shouldReturnSizeWhenBaseHasSize(int expectedSize, int branchSize, String patern)
        {
            Trunk trunk = new Trunk(branchSize);
            int trunkSize = trunk.TrunkBaseLineSize;

            Assert.That(trunkSize, Is.EqualTo(expectedSize));

            String resultPatern = trunk.ToString();
            Assert.That(resultPatern, Is.EqualTo(patern));
        }
Ejemplo n.º 2
0
 private void BuildTreeObjects(out IList<Branch> branches, out Trunk trunk)
 {
     branches = GetBranches(treeSize);
     trunk = GetTrunk(branches[TreeSize - 1].BranchSize);
 }