/// <summary>
        /// Sets the automatic wave 3 wave characteristics general.
        /// </summary>
        /// <param name="model">The model.</param>
        /// <param name="table">The table.</param>
        internal static void SetAUTO_WAVE_3_WAVE_CHARACTERISTICS_GENERAL(Model model, List <Dictionary <string, string> > table)
        {
            WaveCharacteristics         autoWave = model.Settings.ModelInformation.GeneralWaveCharacteristics;
            Dictionary <string, string> row      = table[0];

            row["WaveChar"]    = Adaptor.ToStringEntryLimited(autoWave.Characteristics);
            row["WaveType"]    = Adaptor.ToStringEntryLimited(autoWave.WaveType);
            row["KinFactor"]   = Adaptor.fromDouble(autoWave.KinematicsFactor);
            row["SWaterDepth"] = Adaptor.fromDouble(autoWave.StormWaterDepth);
            row["WaveHeight"]  = Adaptor.fromDouble(autoWave.Height);
            row["WavePeriod"]  = Adaptor.fromDouble(autoWave.Period);
            row["WaveTheory"]  = Adaptor.ToStringEntryLimited(autoWave.Theory);
        }
        /// <summary>
        /// Sets the automatic wave 3 wave characteristics general.
        /// </summary>
        /// <param name="model">The model.</param>
        /// <param name="table">The table.</param>
        internal static void SetAUTO_WAVE_3_WAVE_CHARACTERISTICS_GENERAL(Model model, List <Dictionary <string, string> > table)
        {
            WaveCharacteristics         autoWave = model.Settings.ModelInformation.GeneralWaveCharacteristics;
            Dictionary <string, string> row      = table[0];

            autoWave.Characteristics  = row["WaveChar"];
            autoWave.WaveType         = row["WaveType"];
            autoWave.KinematicsFactor = Adaptor.toDouble(row["KinFactor"]);
            autoWave.StormWaterDepth  = Adaptor.toDouble(row["SWaterDepth"]);
            autoWave.Height           = Adaptor.toDouble(row["WaveHeight"]);
            autoWave.Period           = Adaptor.toDouble(row["WavePeriod"]);
            autoWave.Theory           = row["WaveTheory"];
        }
        public void FillModelFromTable_Fills_AUTO_WAVE_3_WAVE_CHARACTERISTICS_GENERAL()
        {
            SAP2000Reader reader = new SAP2000Reader();
            Tables        table  = Reader.ReadFile(path, reader);

            Assert.IsTrue(table.GenerateModelFromTables(reader));

            WaveCharacteristics waveCharacteristics = table.Model.Settings.ModelInformation.GeneralWaveCharacteristics;

            Assert.AreEqual(Constants.DEFAULT, waveCharacteristics.Characteristics);
            Assert.AreEqual("\"From Theory\"", waveCharacteristics.WaveType);
            Assert.AreEqual(1, waveCharacteristics.KinematicsFactor);
            Assert.AreEqual(150, waveCharacteristics.StormWaterDepth);
            Assert.AreEqual(60, waveCharacteristics.Height);
            Assert.AreEqual(12, waveCharacteristics.Period);
            Assert.AreEqual("Linear", waveCharacteristics.Theory);
        }