public void TestHypersampling() { Dictionary <string, string> parameters = new Dictionary <string, string>(); parameters.Add("precision", "50"); HyperSampling sampling = new HyperSampling(); sampling.setSamplingParameters(parameters); testNumeric(sampling, EXPECTED_HYPERSAMPLING_50); parameters.Clear(); parameters.Add("precision", "40"); sampling.setSamplingParameters(parameters); testNumeric(sampling, EXPECTED_HYPERSAMPLING_40); }
public static bool TestHypersampling(string solver, int expected, int precision) { string loc = resolvePath(solver, "HyperSampling" + precision + ".csv"); Dictionary <string, string> parameters = new Dictionary <string, string>(); parameters.Add("precision", precision.ToString()); HyperSampling sampling = new HyperSampling(); sampling.setSamplingParameters(parameters); List <Configuration> result = testNumeric(sampling); List <Configuration> expectedSample = ConfigurationReader.readConfigurations_Header_CSV(loc, GlobalState.varModel); return(containsAllMeasurements(result, expectedSample) && result.Count == expected); }