/// <summary>
 /// Initializes a new instance of the <see cref="Pressure"/> struct.
 /// </summary>
 /// <param name="pressure">The value of pressure.</param>
 /// <param name="unit">The unit of pressure.</param>
 public Pressure(double pressure, Units.Pressure unit)
 {
     switch (unit)
     {
     case Units.Pressure.Pascal:
     default:
         this.pressure = pressure;
         break;
     }
 }
        public void InequalityPositive(double valueA, Units.Pressure unitA, double valueB, Units.Pressure unitB)
        {
            var first  = new Core.Types.Pressure(valueA, unitA);
            var second = new Core.Types.Pressure(valueB, unitB);

            Assert.AreNotEqual(first, second);
            Assert.AreNotEqual((object)first, (object)second);
            Assert.AreNotEqual(first.GetHashCode(), second.GetHashCode());
            Assert.IsTrue(first != second);
        }
 /// <inheritdoc/>
 public double GetPressure(Units.Pressure unit)
 {
     return(this.pressure);
 }
 public void ToString(string expected, double pressure, Units.Pressure unit)
 {
     Assert.AreEqual(expected, new Core.Types.Pressure(pressure, unit).ToString());
 }
        public void Constructor(double pressure, Units.Pressure unit)
        {
            var instance = new Core.Types.Pressure(pressure, unit);

            Assert.AreEqual(pressure, instance.GetPressure(unit));
        }