ProductionRatePerHour() public static method

public static ProductionRatePerHour ( int speed ) : double
speed int
return double
Ejemplo n.º 1
0
 public void ProductionRatePerHourForSpeedOne() =>
 Assert.Equal(221.0, AssemblyLine.ProductionRatePerHour(1));
Ejemplo n.º 2
0
 public void ProductionRatePerHourForSpeedNine() =>
 Assert.Equal(1531.53, AssemblyLine.ProductionRatePerHour(9));
Ejemplo n.º 3
0
 public void ProductionRatePerHourForSpeedZero() =>
 Assert.Equal(0.0, AssemblyLine.ProductionRatePerHour(0));
Ejemplo n.º 4
0
 public void ProductionRatePerHourForSpeedFour() =>
 Assert.Equal(884.0, AssemblyLine.ProductionRatePerHour(4));
Ejemplo n.º 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);
 }
Ejemplo n.º 11
0
 public void Production_rate_per_hour_for_speed_zero()
 {
     Assert.Equal(0.0, AssemblyLine.ProductionRatePerHour(0));
 }
Ejemplo n.º 12
0
 public void ProductionRatePerHour(int speed, double expected) =>
 Assert.Equal(expected, AssemblyLine.ProductionRatePerHour(speed));
Ejemplo n.º 13
0
 public void ProductionRatePerHourForSpeedTen() =>
 Assert.Equal(1701.7, AssemblyLine.ProductionRatePerHour(10));
Ejemplo n.º 14
0
 public void ProductionRatePerHourForSpeedNine()
 {
     Assert.Equal(1591.2, AssemblyLine.ProductionRatePerHour(9));
 }