public void CheckReportCreation(string programmingLanguage, string code, string expected) { CodeBlock testObject = new CodeBlock(programmingLanguage, code); string actual = testObject.Create(); Assert.Equal(expected, actual); }
protected override void SolveInstance(IGH_DataAccess DA) { string programmingLanguage = string.Empty; string code = string.Empty; DA.GetData(0, ref programmingLanguage); DA.GetData(1, ref code); string reportPart; CodeBlock reportObject = new CodeBlock(programmingLanguage, code); reportPart = reportObject.Create(); DA.SetData(0, reportPart); }