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)
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)
def apply(self, environment: ConstructionEnvironment) -> doc.SectionContents: renderer = ProgramDocumentationSectionContentsConstructor( MainCliSyntaxDocumentation()) return renderer.apply(environment)