tpierrain / NFluent

Smooth your .NET TDD experience with NFluent! NFluent is an ergonomic assertion library which aims to fluent your .NET TDD experience (based on simple Check.That() assertion statements). NFluent aims your tests to be fluent to write (with a super-duper-happy 'dot' auto-completion experience), fluent to read (i.e. as close as possible to plain English expression), but also fluent to troubleshoot, in a less-error-prone way comparing to the classical .NET test frameworks. NFluent is also directly inspired by the awesome Java FEST Fluent assertion/reflection library (http://fest.easytesting.org/)
Apache License 2.0
310 stars 53 forks source link

Issue with Enum properties and Considering #317

Closed dupdob closed 4 years ago

dupdob commented 4 years ago

Enum properties are not supported by Considering.

Expected Behavior

Enum properties should be evaluated when performing property checks .

Current Behavior

Enum properties are not evaluated when performing property checks .

Possible Solution

There is no acceptable workaround as of now.

Code that reproduce the issue

public enum Friends
{
    Joey = 1,
    Chandler = 2
}
Check.That(new { Friend = Friends.Chandler }).Considering().
   Public.Properties.IsEqualTo(new { Friend = Friends.Joey });

Your Environment