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
is there any way to select types that are not inherited by any class? Like:
varresult= Types.InCurrentDomain().And().AreNotInterfaces().And().AreNotAbstract().And().AreNotInheritedByAnyClass()// <--- like this.Should().BeSealed().GetResult();
The text was updated successfully, but these errors were encountered:
kristofferjalen
changed the title
Select types that do not inherit any class
Select types that are not inherited by any class
Nov 9, 2023
It is interesting use case. As far as I know, right now it is not supported, but it looks like doable, and could be added in the future to the NetArchTest.
NeVeSpl
added a commit
to NeVeSpl/NetArchTest.eNhancedEdition
that referenced
this issue
Nov 24, 2023
Say I have a class that inherits from another, non-abstract, class:
This will break my assertion that class should be sealed:
Rather than filtering edge-cases:
is there any way to select types that are not inherited by any class? Like:
The text was updated successfully, but these errors were encountered: