public void Find_WithoutExplicitType() { Distributor distributor = _transaction.ExecuteInScope(() => Distributor.NewObject()); Assert.That(distributor.Properties.Contains(typeof(Distributor).FullName + ".ContactPerson"), Is.False); Assert.That(distributor.Properties.Find("ContactPerson"), Is.EqualTo(distributor.Properties[typeof(Partner), "ContactPerson"])); }
public void Find_NonExistingProperty() { Distributor distributor = _transaction.ExecuteInScope(() => Distributor.NewObject()); distributor.Properties.Find(typeof(Distributor), "Frobbers"); }