public void FindContactWhereData() { var finder = new ContactTableFinder { UseRawContacts = false }; var result = finder.Find(GetExpression <Contact, bool> (c => c.FirstName == "First")); Assert.That(result, Is.Not.Null); Assert.That(result.MimeType, Is.EqualTo(ContactsContract.CommonDataKinds.StructuredName.ContentItemType)); Assert.That(result.Table, Is.EqualTo(ContactsContract.Data.ContentUri)); }
public void FindContactWhere() { var finder = new ContactTableFinder { UseRawContacts = false }; var result = finder.Find(GetExpression <Contact, bool> (c => c.DisplayName == "Display Name")); Assert.That(result, Is.Not.Null); Assert.That(result.MimeType, Is.Null); Assert.That(result.Table, Is.EqualTo(ContactsContract.Contacts.ContentUri)); }