Skip to content

Conversation

@eNeRGy164
Copy link
Contributor

More coverage of #1039

  • Added failure message when Subject is null
  • Added Guards against null parameters

All these null reference exception paths.. already made me doubt TDD practices since a training on 27 Februari 2010 in Doorn 😉

IMPORTANT

Copy link
Member

@dennisdoomen dennisdoomen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder whether it was worth the trouble. Especially since you're now directly testing the internal

@jnyrup jnyrup mentioned this pull request May 16, 2021
5 tasks
Copy link
Member

@jnyrup jnyrup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a single question, otherwise I like this approach 👍

PropertyInfoSelector propertyInfoSelector;

// Act
Action act = () => propertyInfoSelector = new PropertyInfoSelector((Type)null);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm still uncomfortable directly using the "internal" types in tests, but we have no clear guidance on what we should and should not do.

@jnyrup jnyrup merged commit 8eddb27 into fluentassertions:develop May 20, 2021
@eNeRGy164 eNeRGy164 deleted the robust-propertyinfo-selector-assertions branch May 20, 2021 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants