Example #1
0
        public void PerformTimeStep()
        {
            EngineWrapper engineWrapper = new EngineWrapper();

            engineWrapper.Initialize(arguments);
            Assert.AreEqual(2, engineWrapper.HydroNetModel._waterBodies[0].CurrentStoredWater.Volume);
            engineWrapper.PerformTimeStep();
            engineWrapper.Finish();
        }
Example #2
0
        public void GetValues()
        {
            EngineWrapper engineWrapper = new EngineWrapper();

            engineWrapper.Initialize(arguments);
            engineWrapper.PerformTimeStep();

            Assert.AreEqual(1, ((IScalarSet)engineWrapper.GetValues("Leakage", "Groundwater boundary under Upper Lake")).Count);
            Assert.AreEqual(22.384, ((IScalarSet)engineWrapper.GetValues("Leakage", "Groundwater boundary under Upper Lake")).GetScalar(0), 0.001);
        }