private int getSignalStrength(Wwan_TestCaseInfo.SimSlot sim) { int signalStrength = -999; if (sim.Equals(Wwan_TestCaseInfo.SimSlot.SIM2)) { androidDevice.SIM2.RefreshState(); signalStrength = androidDevice.SIM2.SignalStrength; } else { androidDevice.SIM1.RefreshState(); signalStrength = androidDevice.SIM1.SignalStrength; } return(signalStrength); }