merge Power tube power to main
2 unresolved threads
2 unresolved threads
please check if more tests are needed for the powertube constructor
Merge request reports
Activity
requested review from @au655848
assigned to @au706327
8 private IOutput myOutput; 9 10 private bool IsOn = false; 11 12 private readonly int powerTubeSize; 13 14 public int PowerTubeSize 15 { 16 get { return powerTubeSize; } 17 } 18 19 public PowerTube(IOutput output, int powerTubeSize) 20 { 21 myOutput = output; 22 this.powerTubeSize =( powerTubeSize == 500 | powerTubeSize == 700 | powerTubeSize == 800 | powerTubeSize == 1000 23 ? powerTubeSize : 500); 16 16 public void Setup() 17 17 { 18 18 output = Substitute.For<IOutput>(); 19 uut = new PowerTube(output); 19 uut = new PowerTube(output,700); 20 20 } 21 21 22 [TestCase(1)] 22 23 24 [TestCase(1)] 23 25 [TestCase(50)] 24 26 [TestCase(100)] 25 27 [TestCase(699)] 26 28 [TestCase(700)] 27 29 public void TurnOn_WasOffCorrectPower_CorrectOutput(int power) mentioned in commit 1cb032dc
Please register or sign in to reply