示例#1
0
        public void GetValues()
        {
            DaisyWrapper Daisy = GetInitDaisy();

            global::OpenMI.Standard.IValueSet  value = Daisy.GetValues("height", "height");
            Oatc.OpenMI.Sdk.Backbone.ScalarSet test  = (Oatc.OpenMI.Sdk.Backbone.ScalarSet)value;
            Assert.AreEqual(3, value.Count);
            Assert.AreEqual(Daisy.GetMissingValueDefinition(), test.data[0]);

            Daisy.PerformTimeStep();
            value = Daisy.GetValues("Water", "Water");
            Assert.AreEqual(3, value.Count);
            test = (Oatc.OpenMI.Sdk.Backbone.ScalarSet)value;
            Assert.Greater(test.data[0], 400);
        }
示例#2
0
        public void GetMissingValueDefinition()
        {
            DaisyWrapper Daisy = GetInitDaisy();

            Assert.AreEqual(-999999.99, Daisy.GetMissingValueDefinition());
        }