private void VerifyPhoneWithPathMatchesExpected(IEnumerable <IPhoneDeviceInfo> phones, string path, IPhoneDeviceInfo matchingExpected) { PhoneSelector_Accessor selector = GetSelector(phones); IPhoneDeviceInfo matchingActual = selector.FindDeviceInfoWithPath(path); Assert.AreEqual(matchingExpected, matchingActual); }
private void VerifyPhoneWithPathIsNotFound(IEnumerable <IPhoneDeviceInfo> phones, string path) { bool found; try { PhoneSelector_Accessor selector = GetSelector(phones); selector.FindDeviceInfoWithPath(path); found = true; } catch (KeyNotFoundException) { found = false; } catch (Exception) { throw; } Assert.IsFalse(found); }