public void SaveTestPDFType() { GradeTonnageInputParams input = new GradeTonnageInputParams(); input.PDFType = "normal"; input.Save(output_json_file1); input.PDFType = ""; input.Load(output_json_file1); Assert.AreEqual("normal", input.PDFType); }
public void SaveTestRandomSampleCount() { GradeTonnageInputParams input = new GradeTonnageInputParams(); input.RandomSampleCount = "555"; input.Save(output_json_file1); input.RandomSampleCount = ""; input.Load(output_json_file1); Assert.AreEqual("555", input.RandomSampleCount); }
public void SaveTestSeed() { GradeTonnageInputParams input = new GradeTonnageInputParams(); input.Seed = "123"; input.Save(output_json_file1); input.Seed = ""; input.Load(output_json_file1); Assert.AreEqual("123", input.Seed); }
public void SaveTestCSVPath() { GradeTonnageInputParams input = new GradeTonnageInputParams(); input.CSVPath = @"c:\path\to\file.json"; input.Save(output_json_file1); input.CSVPath = ""; input.Load(output_json_file1); Assert.AreEqual(@"c:\path\to\file.json", input.CSVPath); }
public void SaveTestIsTruncated() { GradeTonnageInputParams input = new GradeTonnageInputParams(); input.IsTruncated = "TRUE"; input.Save(output_json_file1); input.IsTruncated = ""; input.Load(output_json_file1); Assert.AreEqual("TRUE", input.IsTruncated); }
public void SaveTestMinDepositCount() { GradeTonnageInputParams input = new GradeTonnageInputParams(); input.MinDepositCount = "1000"; input.Save(output_json_file1); input.MinDepositCount = ""; input.Load(output_json_file1); Assert.AreEqual("1000", input.MinDepositCount); }
public void SaveTestCSVPath() { string output_json_file1 = @"C:\Temp\mapWizard\DepositDensity\output\output_test.json"; GradeTonnageInputParams input = new GradeTonnageInputParams(); input.CSVPath = @"c:\path\to\file.json"; input.Save(output_json_file1); input.CSVPath = ""; input.Load(output_json_file1); Assert.AreEqual(@"c:\path\to\file.json", input.CSVPath); }
public void SaveTestComplete() { loadedParams.Save(output_json_file1); GradeTonnageInputParams second = new GradeTonnageInputParams(); second.Load(output_json_file1); Assert.AreEqual(loadedParams.CSVPath, second.CSVPath); Assert.AreEqual(loadedParams.IsTruncated, second.IsTruncated); Assert.AreEqual(loadedParams.MinDepositCount, second.MinDepositCount); Assert.AreEqual(loadedParams.PDFType, second.PDFType); Assert.AreEqual(loadedParams.RandomSampleCount, second.RandomSampleCount); Assert.AreEqual(loadedParams.Seed, second.Seed); }