public void ProportionToMinutesSuccess() { var(good, total) = QualityUtils.ProportionToMinutes(OwlveyCalendar.StartJanuary2019, OwlveyCalendar.EndJanuary2019, 0.94M); var target = (decimal)good / (decimal)(total); Assert.Equal(target, 0.94M); }
public void ProportionToMinutesSuccess() { var(good, total) = QualityUtils.ProportionToMinutes(OwlveyCalendar.StartJanuary2019, OwlveyCalendar.EndJanuary2019, 0.94M); var target = (decimal)good / (decimal)(total); Assert.Equal(target, 0.94M); }