示例#1
0
        private void VerifyPhoneWithPathMatchesExpected(IEnumerable <IPhoneDeviceInfo> phones, string path, IPhoneDeviceInfo matchingExpected)
        {
            PhoneSelector_Accessor selector       = GetSelector(phones);
            IPhoneDeviceInfo       matchingActual = selector.FindDeviceInfoWithPath(path);

            Assert.AreEqual(matchingExpected, matchingActual);
        }
示例#2
0
        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);
        }