Esempio n. 1
0
 private static void TestNestingLevels(NestedElementTranslationUnit parent, NestedElementTranslationUnit child)
 {
     Assert.AreEqual(parent.NestingLevel + 1, child.NestingLevel, "Nested translation unit should have +1 nesting level!");
 }
Esempio n. 2
0
 private static void TestInitialNestingLevel(NestedElementTranslationUnit translationUnit)
 {
     Assert.AreEqual(0, translationUnit.NestingLevel, "At the beginning, nesting level should be 0!");
 }