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