public void CanRetrieveTheValueOfAPropertyLookingItUpByAttribute() { var entity = new Entity { Id = 101 }; int value = (int)BaseAttribute.GetValueOfProperty <PrimaryKeyAttribute>(entity); Assert.That(value, Is.EqualTo(101)); }