コード例 #1
0
ファイル: cli_syntax.py プロジェクト: emilkarlen/exactly
 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)