Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }
Пример #4
0
        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);
        }
Пример #5
0
        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);
        }
Пример #6
0
        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);
        }
Пример #7
0
        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);
        }
Пример #8
0
        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);
        }