[Test] public void FindContactTestAlmostEqualsWithNullAccountSearch() { IContact c1 = _contactManager.FindOrCreateContact("account1", "FirstName LastName"); IContact c2 = _contactManager.CreateContact("FirstName LastName (JIRA)"); Assert.IsTrue(c1.Resource.Id != c2.Resource.Id); IContact c = _contactManager.FindOrCreateContact(null, "FirstName LastName"); Assert.IsTrue(c.Resource.Id == c1.Resource.Id); c = _contactManager.FindOrCreateContact("account1", "FirstName LastName"); Assert.IsTrue(c.Resource.Id == c1.Resource.Id); //----------------------------------------------------------------- IResource account = _contactManager.FindOrCreateEmailAccount("account2"); account.SetProp(_contactManager.Props.LinkEmailAcct, c2.Resource); c = _contactManager.FindOrCreateContact("account2", "FirstName LastName"); Assert.IsTrue(c.Resource.Id == c2.Resource.Id); }