예제 #1
0
 private Data.ArtDatabankenService.FactorTreeNodeList GetFactorTrees()
 {
     if (_factorTrees.IsNull())
     {
         _factorTrees = FactorManagerTest.GetForestFactorTreeNode().Children;
     }
     return(_factorTrees);
 }
예제 #2
0
        public void SquareBracketOperator()
        {
            Int32 factorTreeIndex;

            Data.ArtDatabankenService.FactorTreeNodeList newFactorTreeList, oldFactorTreeList;

            oldFactorTreeList = GetFactorTrees();
            newFactorTreeList = new Data.ArtDatabankenService.FactorTreeNodeList();
            for (factorTreeIndex = 0; factorTreeIndex < oldFactorTreeList.Count; factorTreeIndex++)
            {
                newFactorTreeList.Add(oldFactorTreeList[oldFactorTreeList.Count - factorTreeIndex - 1]);
            }
            for (factorTreeIndex = 0; factorTreeIndex < oldFactorTreeList.Count; factorTreeIndex++)
            {
                Assert.AreEqual(newFactorTreeList[factorTreeIndex], oldFactorTreeList[oldFactorTreeList.Count - factorTreeIndex - 1]);
            }
        }
예제 #3
0
 public FactorTreeNodeListTest()
 {
     _factorTrees = null;
 }