Skip to content

Conversation

@jnyrup
Copy link
Member

@jnyrup jnyrup commented Nov 30, 2019

The namespace of a type not inside any namespace is null.
As all types are under the global namespace, ThatAreUnderNamespace should be able to gracefully handle null namespaces.

This also fixes that ThatAreUnderNamespace would incorrectly match the
namespace of a type against a partial prefix.

This fixes #1185 and #1196

@jnyrup jnyrup force-pushed the 1185_ThatAreUnderNamespace branch from fea0ab4 to 0d7cae5 Compare November 30, 2019 18:43
@jnyrup jnyrup changed the title Make ThatAreUnderNamespace respect null namespace. Make ThatAreUnderNamespace respect null namespaces and prefixes Nov 30, 2019
The namespace of a type not inside any namespace is `null`.
As all types are *under* the global namespace, `ThatAreUnderNamespace` should be able to gracefully handle `null` namespaces.

This also fixes that `ThatAreUnderNamespace` would incorrectly match the
namespace of a type against a partial prefix.

This fixes fluentassertions#1185 and fluentassertions#1196
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.

TypeSelector.ThatAreUnderNamespace(null) behaves inconsistently and throws exceptions

2 participants