public void HalidanCompartment_SetCompartmentTimeConstants_SetNitrogeAnVerify()
 {
     HalidanCompartment target = new HalidanCompartment();
     double halftiemeHelium = 1;
     double halftiemNitrogen = 2;
     target.SetCompartmentTimeConstants(halftiemeHelium, halftiemNitrogen);
     double actual;
     actual = target.HalfTimeNitrogen;
     Assert.Equal(halftiemNitrogen, actual);
 }
 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_SetCompartmentTimeConstants_NegativePressureNitrogen_ThrowException()
        {
            HalidanCompartment target = new HalidanCompartment();
            double hHe = 1;
            double hN2 = -1;

            Assert.Throws<ArgumentException>(() => target.SetCompartmentTimeConstants(hHe, hN2));
        }
 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);
 }