public void ProductionCalculator_GetPPD_ReturnsPPDWithNoBonus_Test() { var frameTime = TimeSpan.FromMinutes(5); Assert.AreEqual(1440.0, ProductionCalculator.GetPPD(frameTime, 100, 500.0)); }
/// <summary> /// Gets the points per day measurement based the given frame time and work unit credit. /// </summary> /// <param name="protein"></param> /// <param name="frameTime">The work unit frame time.</param> /// <returns>The points per day for the work unit.</returns> public static double GetPPD(this Protein protein, TimeSpan frameTime) { return(ProductionCalculator.GetPPD(frameTime, protein.Frames, protein.Credit)); }
public void ProductionCalculator_GetPPD_ReturnsZeroWhenFrameTimeIsZero_Test() { var frameTime = TimeSpan.Zero; Assert.AreEqual(0.0, ProductionCalculator.GetPPD(frameTime, 0, 0.0)); }