public void DiscriminateOnProperty_should_add_column_mapping() { mapping.DiscriminateOnProperty(x => x.CustomerType); mapping .CastTo <IMapping>() .Mappings .OfType <IColumnMapping>() .Any(x => x.Property == typeof(Customer).GetProperty("CustomerType")) .ShouldBeTrue(); }