Open wolframhaussig opened 6 months ago
I've found this annoying as well. The actual errors appear at the end of the message but it's easy to miss this with all the noise.
Hello @wolframhaussig,
thank you for reporting this issue.
I've now been investigating this and found the following:
Types().That().ResideInNamespace("^System.*", true)
. On the one hand, these types are distributed among multiple namespaces and assemblies. On the other hand, ResideInAssembly
currently matches the fully qualified name of the assembly, which not only includes it's name. We plan to change this in the future, I've created #290 to track this separately.I will link this issue as soon as the patch is ready.
I created a test library with a simple single class:
My tests look like this:
This test complains about:
Note that it also complains about system types. When I add
.Or().ResideInNamespace("ClassLibrary1")
, the test succeeds.Is it possible to only complain about types that real errors instead of complaining about all references? Or am I missing something?