public void GetMeasureUnitMix()
        {
            Assert.AreEqual(UnitPrice.GetMeasureUnit(p11, pN), TimeSpanUnit.Hour);

            Assert.AreEqual(UnitPrice.GetMeasureUnit(pN, p11), TimeSpanUnit.Hour);

            Assert.AreEqual(UnitPrice.GetMeasureUnit(p11, pZ), TimeSpanUnit.Hour);

            Assert.AreEqual(UnitPrice.GetMeasureUnit(pZ, p11), TimeSpanUnit.Hour);
        }
        public void GetMeasureUnitZero()
        {
            Assert.AreEqual(UnitPrice.GetMeasureUnit(pN, pN), null);

            Assert.AreEqual(UnitPrice.GetMeasureUnit(pZ, pN), null);

            Assert.AreEqual(UnitPrice.GetMeasureUnit(pN, pZ), null);

            Assert.AreEqual(UnitPrice.GetMeasureUnit(pZ, pZ), null);
        }
 public void GetMeasureUnitDifferentMeasure()
 {
     UnitPrice.GetMeasureUnit(pDay, pHour);
 }
 public void GetMeasureUnitOK()
 {
     Assert.AreEqual(UnitPrice.GetMeasureUnit(p11, p22), TimeSpanUnit.Hour);
 }