public void ProductionCalculator_GetUPD_Test()
        {
            var frameTime = TimeSpan.FromMinutes(5);

            Assert.AreEqual(2.88, ProductionCalculator.GetUPD(frameTime, 100));
        }
 /// <summary>
 /// Gets the units per day measurement based the given frame time and number of frames.
 /// </summary>
 /// <param name="protein"></param>
 /// <param name="frameTime">The work unit frame time.</param>
 /// <returns>The units per day for the work unit.</returns>
 public static double GetUPD(this Protein protein, TimeSpan frameTime)
 {
     return(ProductionCalculator.GetUPD(frameTime, protein.Frames));
 }
        public void ProductionCalculator_GetUPD_ReturnsZeroWhenFrameTimeIsZero_Test()
        {
            var frameTime = TimeSpan.Zero;

            Assert.AreEqual(0.0, ProductionCalculator.GetUPD(frameTime, 100));
        }