Пример #1
0
 def test(self):
     # ARRANGE #
     constructor = ProgramDocumentationSectionContentsConstructor(TestSuiteCliSyntaxDocumentation())
     cross_ref_text_constructor = CrossReferenceTextConstructorTestImpl()
     # ACT #
     actual = constructor.apply(ConstructionEnvironment(cross_ref_text_constructor))
     # ASSERT #
     struct_check.is_section_contents.apply(self, actual)
Пример #2
0
 def test(self):
     # ARRANGE #
     constructor = ProgramDocumentationSectionContentsConstructor(TestCaseCliSyntaxDocumentation())
     cross_ref_text_constructor = CrossReferenceTextConstructorTestImpl()
     # ACT #
     actual = constructor.apply(ConstructionEnvironment(cross_ref_text_constructor))
     # ASSERT #
     struct_check.is_section_contents.apply(self, actual)
Пример #3
0
 def apply(self,
           environment: ConstructionEnvironment) -> doc.SectionContents:
     renderer = ProgramDocumentationSectionContentsConstructor(
         MainCliSyntaxDocumentation())
     return renderer.apply(environment)