コード例 #1
0
        public void ProductionCalculator_GetPPD_ReturnsPPDWithNoBonus_Test()
        {
            var frameTime = TimeSpan.FromMinutes(5);

            Assert.AreEqual(1440.0, ProductionCalculator.GetPPD(frameTime, 100, 500.0));
        }
コード例 #2
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));
 }
コード例 #3
0
        public void ProductionCalculator_GetPPD_ReturnsZeroWhenFrameTimeIsZero_Test()
        {
            var frameTime = TimeSpan.Zero;

            Assert.AreEqual(0.0, ProductionCalculator.GetPPD(frameTime, 0, 0.0));
        }