You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ThatAreUnderNamespace considers a type to be under a namespace @namespace, if @namespace is a string prefix of its namespace.
That unintendedly allows a type in SystemSomething to be under the namespace System.
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 fixesfluentassertions#1185 and fluentassertions#1196
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 fixesfluentassertions#1185 and fluentassertions#1196
Description
ThatAreUnderNamespace
considers a type to be under a namespace@namespace
, if@namespace
is a string prefix of its namespace.That unintendedly allows a type in
SystemSomething
to be under the namespaceSystem
.Complete minimal example reproducing the issue
Expected behavior:
Foo
should not be considered to be under the namespaceSystem
.[What actually happens]
Foo
is considered to be under the namespaceSystem
.Additional Information
First reported in #1175
Related to #1193
The text was updated successfully, but these errors were encountered: