public void Can_use_equal_string_attribute_name() { var id = Guid.NewGuid(); var reference = new EntityReference("xts_reference", id); var entity = new xts_entity { Id = Guid.NewGuid() }; entity.Set(e => e.xts_referenceid, reference); var accessor = new EntityAccessor <xts_entity>(entity); var comparisonValue = new EntityReference("xts_reference", id); Assert.True(accessor.Equal("xts_referenceid", comparisonValue)); Assert.False(accessor.Equal("xts_referenceid", new EntityReference("xts_reference", Guid.NewGuid()))); }