public void InitializeTest() { N_SolarRadiation.N_SR component = new N_SR(); System.Collections.Hashtable args = new System.Collections.Hashtable(); args.Add("ConfigFile", "../../../source/config.xml"); args.Add("wtmpFolder", "../../../data/wtmp"); component.Initialize(args); }
public void PerformTimeStepTest() { N_SolarRadiation.N_SR component = new N_SR(); //Initialize Component System.Collections.Hashtable args = new System.Collections.Hashtable(); args.Add("ConfigFile", "../../../source/config.xml"); args.Add("wtmpFolder", "../../../data/wtmp"); component.Initialize(args); //Call perform timestep in the component class component.PerformTimeStep(); //retrieve values from the compenent class ScalarSet _NSR = (ScalarSet)component.GetValues("NSR", "NetRad"); double[] NSR = _NSR.data; }