calculateDepth() публичный Метод

public calculateDepth ( ) : int
Результат int
 public void testCalculateDepth_simple1()
 {
     TableOfContents tableOfContents = new TableOfContents();
     Assert.AreEqual(0, tableOfContents.calculateDepth());
 }
 public void testCalculateDepth_simple2()
 {
     TableOfContents tableOfContents = new TableOfContents();
     tableOfContents.addTOCReference(new TOCReference());
     Assert.AreEqual(1, tableOfContents.calculateDepth());
 }
        public void testCalculateDepth_simple3()
        {
            TableOfContents tableOfContents = new TableOfContents();
            tableOfContents.addTOCReference(new TOCReference());
            TOCReference childTOCReference = tableOfContents.addTOCReference(new TOCReference());
            childTOCReference.addChildSection(new TOCReference());
            tableOfContents.addTOCReference(new TOCReference());

            Assert.AreEqual(2, tableOfContents.calculateDepth());
        }