ProductionRatePerHour() public static method

public static ProductionRatePerHour ( int speed ) : double
speed int
return double
Beispiel #1
0
 public void ProductionRatePerHourForSpeedOne() =>
 Assert.Equal(221.0, AssemblyLine.ProductionRatePerHour(1));
Beispiel #2
0
 public void ProductionRatePerHourForSpeedNine() =>
 Assert.Equal(1531.53, AssemblyLine.ProductionRatePerHour(9));
Beispiel #3
0
 public void ProductionRatePerHourForSpeedZero() =>
 Assert.Equal(0.0, AssemblyLine.ProductionRatePerHour(0));
Beispiel #4
0
 public void ProductionRatePerHourForSpeedFour() =>
 Assert.Equal(884.0, AssemblyLine.ProductionRatePerHour(4));
Beispiel #5
0
 public void ProductionRatePerHourForSpeedSeven() =>
 Assert.Equal(1392.3, AssemblyLine.ProductionRatePerHour(7));
 public void Production_rate_per_hour_for_speed_nine()
 {
     Assert.Equal(1591.2, AssemblyLine.ProductionRatePerHour(9), precision: 1);
 }
 public void Production_rate_per_hour_for_speed_ten()
 {
     Assert.Equal(1701.7, AssemblyLine.ProductionRatePerHour(10), precision: 1);
 }
 public void Production_rate_per_hour_for_speed_four()
 {
     Assert.Equal(884.0, AssemblyLine.ProductionRatePerHour(4), precision: 1);
 }
 public void Production_rate_per_hour_for_speed_seven()
 {
     Assert.Equal(1392.3, AssemblyLine.ProductionRatePerHour(7), precision: 1);
 }
 public void Production_rate_per_hour_for_speed_one()
 {
     Assert.Equal(221.0, AssemblyLine.ProductionRatePerHour(1), precision: 1);
 }
Beispiel #11
0
 public void Production_rate_per_hour_for_speed_zero()
 {
     Assert.Equal(0.0, AssemblyLine.ProductionRatePerHour(0));
 }
 public void ProductionRatePerHour(int speed, double expected) =>
 Assert.Equal(expected, AssemblyLine.ProductionRatePerHour(speed));
Beispiel #13
0
 public void ProductionRatePerHourForSpeedTen() =>
 Assert.Equal(1701.7, AssemblyLine.ProductionRatePerHour(10));
Beispiel #14
0
 public void ProductionRatePerHourForSpeedNine()
 {
     Assert.Equal(1591.2, AssemblyLine.ProductionRatePerHour(9));
 }