Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

NUnit fixture with non-matching constraint on fixture class is silently ignored
GreenMoose
#1 Posted : Thursday, May 9, 2019 7:15:23 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 507

Thanks: 145 times
Was thanked: 66 time(s) in 64 post(s)
[v3.27.0.3]
Given code below, is there a way to have NCrunch warn me about BFoo is not matching the constraint or this purely due to NUnit technicalities?
(If I supply the 2 TypeArgs in same fixture no test is run on the fixture)

Code

Thanks.
Remco
#2 Posted : Thursday, May 9, 2019 11:11:58 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Unfortunately this is all behind the NUnit abstraction. We try to avoid digging into this logic because when we do, it inhibits our ability to treat NUnit as a service that provides us with test identifiers and allows us to run them generically.
1 user thanked Remco for this useful post.
GreenMoose on 5/10/2019(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.023 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download