Beispiel #1
0
        public void EvaporateTest()
        {
            IsotopeWater Iw = new IsotopeWater(100);

            Iw.SetIsotopeRatio(10);
            TimestampSeries ts = new TimestampSeries();

            ts.AddSiValue(new DateTime(2000, 1, 1), 5);
            ts.AllowExtrapolation       = true;
            ts.ExtrapolationMethod      = ExtrapolationMethods.Linear;
            ts.RelaxationFactor         = 1;
            Iw.EvaporationConcentration = ts;

            Iw.Evaporate(1);
            double v1 = Iw.GetIsotopeRatio();

            Iw.Evaporate(2);
            double v2 = Iw.GetIsotopeRatio();

            Iw.Evaporate(5);
            double v5 = Iw.GetIsotopeRatio();

            Iw.Evaporate(90);
            double v90 = Iw.GetIsotopeRatio();

            Assert.AreEqual(10.101, v1, 0.01);
            Assert.AreEqual(10.309, v2, 0.01);
            Assert.AreEqual(10.870, v5, 0.01);
            Assert.AreEqual(500, Iw.GetIsotopeRatio(), 0.01);
        }