public void LimitWeightsChangeTest()
 {
     menuCodeWeight.Value = 100;
     MainScreenLogic.LimitWeightsChange(menuCodeWeight, menuExeWeight, menuResultsWeight);
     try
     {
         menuExeWeight.Value = 100;
     }
     catch
     {
         // Nothing(Dont set menuExeWeight)
     }
     MainScreenLogic.LimitWeightsChange(menuCodeWeight, menuExeWeight, menuResultsWeight);
     Assert.AreEqual(100, menuCodeWeight.Value);
     Assert.AreEqual(0, menuExeWeight.Value);
 }
Пример #2
0
 private void menuCodeWeight_ValueChanged(object sender, EventArgs e)
 {
     MainScreenLogic.LimitWeightsChange(this.menuCodeWeight, this.menuExeWeight, this.menuResultsWeight);
 }