private Data.ArtDatabankenService.TaxonTreeNodeList GetTaxonTrees() { if (_taxonTrees.IsNull()) { _taxonTrees = TaxonManagerTest.GetHawkBirdsTaxonTree().Children; } return(_taxonTrees); }
public void SquareBracketOperator() { Int32 taxonTreeIndex; Data.ArtDatabankenService.TaxonTreeNodeList newTaxonTreeList, oldTaxonTreeList; oldTaxonTreeList = GetTaxonTrees(); newTaxonTreeList = new Data.ArtDatabankenService.TaxonTreeNodeList(); for (taxonTreeIndex = 0; taxonTreeIndex < oldTaxonTreeList.Count; taxonTreeIndex++) { newTaxonTreeList.Add(oldTaxonTreeList[oldTaxonTreeList.Count - taxonTreeIndex - 1]); } for (taxonTreeIndex = 0; taxonTreeIndex < oldTaxonTreeList.Count; taxonTreeIndex++) { Assert.AreEqual(newTaxonTreeList[taxonTreeIndex], oldTaxonTreeList[oldTaxonTreeList.Count - taxonTreeIndex - 1]); } }
public TaxonTreeNodeListTest() { _taxonTrees = null; }