-
Notifications
You must be signed in to change notification settings - Fork 731
Closed
Labels
Description
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 namespace System.
Complete minimal example reproducing the issue
namespace SystemPrefixed
{
class Foo
{
}
}TypeSelector types = new[] { typeof(SystemPrefixed.Foo) }.Types();
types.ThatAreUnderNamespace("System")
.As<IEnumerable<Type>>()
.Should()
.BeEmpty();Expected behavior:
Foo should not be considered to be under the namespace System.
[What actually happens]
Foo is considered to be under the namespace System.