private IList OccamAndZora()
        {
            IList list = new ArrayList();

            BasicQLinTestCase.Cat occam = new BasicQLinTestCase.Cat("Occam", 7);
            BasicQLinTestCase.Cat zora  = new BasicQLinTestCase.Cat("Zora", 6);
            occam.Spouse(zora);
            list.Add(occam);
            list.Add(zora);
            return(list);
        }
        private IList Family(BasicQLinTestCase.Cat father, BasicQLinTestCase.Cat mother,
                             BasicQLinTestCase.Cat[] children)
        {
            IList list = new ArrayList();

            list.Add(father);
            list.Add(mother);
            for (int childIndex = 0; childIndex < children.Length; ++childIndex)
            {
                BasicQLinTestCase.Cat child = children[childIndex];
                child.father = father;
                child.mother = mother;
                father.children.Add(child);
                mother.children.Add(child);
            }
            father.Spouse(mother);
            return(list);
        }
示例#3
0
		private IList OccamAndZora()
		{
			IList list = new ArrayList();
			BasicQLinTestCase.Cat occam = new BasicQLinTestCase.Cat("Occam", 7);
			BasicQLinTestCase.Cat zora = new BasicQLinTestCase.Cat("Zora", 6);
			occam.Spouse(zora);
			list.Add(occam);
			list.Add(zora);
			return list;
		}