示例#1
0
        public void CsvOutputOptionsDefaults()
        {
            Configuration.CurrentConfiguration = null;
            var csvOptions = CsvSupport.GetCsvOutputOptions("trajectories");

            Assert.IsNotNull(csvOptions);
            Assert.IsFalse(csvOptions.CompressOutput);
            Assert.AreEqual("trajectories.csv", csvOptions.Filename);
            Assert.IsTrue(csvOptions.WriteCsvFile);
            Assert.IsTrue(csvOptions.WriteRealizationIndex);
        }
示例#2
0
        public void CsvOutputOptionsFromConfig()
        {
            const string configText = "{\"output\":{\"writecsv\":false,\"compress\":true,\"writerealizationindex\":false}}";

            Configuration.CurrentConfiguration = Configuration.ConfigurationFromString(configText);
            var csvOptions = CsvSupport.GetCsvOutputOptions("realizations");

            Assert.IsNotNull(csvOptions);
            Assert.IsTrue(csvOptions.CompressOutput);
            Assert.AreEqual("realizations.csv", csvOptions.Filename);
            Assert.IsFalse(csvOptions.WriteCsvFile);
            Assert.IsFalse(csvOptions.WriteRealizationIndex);
        }