Skip to content

RulesEngine - Guid ToString not passing rule #653

Open
@sianmace

Description

I have been using RulesEngine for some time and now have some failing tests when upgrading to v5.0.5

I have replicated the issue in .net Fiddle for both
v5.0.0 - No issue - rule passes - https://dotnetfiddle.net/G0TEtu
and v5.0.5 - Rule does not pass - https://dotnetfiddle.net/ey6kLE

This is a crude simplification of the rule im using in my own tests, just to prove the issue.

The parameters i pass in - one is an object with a collection of guids
the other parameter is a list of strings to match to.

It seems that a == i.ToString() is not returning true
but as you can see in the code, if i execute the same thing as code, it does.

Like i say, this is an introduced change as was working previously as demonstrated in the examples above

Any ideas?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions