예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }