public void HalidanCompartment_ConstDepth_SetNitrogenPressureAndInsperieNitrogen_VerifyResult()
 {
     HalidanCompartment target = new HalidanCompartment();
     target.SetCompartmentTimeConstants(0, 5);
     target.PartialPresureNitrogen = 2;
     target.ConstantDepth(0, 3, 4);
     double actual = Math.Round(target.PartialPresureNitrogen, 4);
     Assert.Equal(2.4257, actual);
     Assert.Equal(0, target.PartialPresureHelium);
 }
        public void HalidanCompartment_ConstantDepth_NegativePressureNitrogen_ThrowException()
        {
            HalidanCompartment target = new HalidanCompartment();
            double PartialPresureHeliumInspired = 1;
            double PartialPresureNitrogenInspired = -1;
            double time = 1;

            Assert.Throws<ArgumentException>(() => target.ConstantDepth(PartialPresureHeliumInspired, PartialPresureNitrogenInspired, time));
        }
 public void HalidanCompartment_ConstDepth_SetHeliumPressureAndInsperieHelium_VerifyResult()
 {
     HalidanCompartment target = new HalidanCompartment();
     target.SetCompartmentTimeConstants(5, 0);
     target.PartialPresureHelium = 2;
     target.ConstantDepth(8, 0, 4);
     double actual = Math.Round(target.PartialPresureHelium, 4);
     Assert.Equal(4.5539, actual);
     Assert.Equal(0, target.PartialPresureNitrogen);
 }