public void CheckReportPartCreation(string text, List <string> variablesSymbols, List <double> variablesValues, string expected) { DynamicMathBlock testObject = new DynamicMathBlock(text, variablesSymbols, variablesValues); string actual = testObject.Format(); Assert.Equal(expected, actual); }
protected override void SolveInstance(IGH_DataAccess DA) { string text = string.Empty; List <string> variablesSymbols = new List <string>(); List <double> variablesValues = new List <double>(); DA.GetData(0, ref text); DA.GetDataList(1, variablesSymbols); DA.GetDataList(2, variablesValues); string reportPart; DynamicMathBlock reportObject = new DynamicMathBlock(text, variablesSymbols, variablesValues); reportPart = reportObject.Format(); DA.SetData(0, reportPart); }
public void CorrectData(string text, List <string> variablesSymbols, List <double> variablesValues, string expected) { DynamicMathBlock testObject = new DynamicMathBlock(text, variablesSymbols, variablesValues); Assert.Equal(text, testObject.Text); }