NCrunch Forum
»
General Support
»
Build/Test Issues
»
ExpectedException inheritance ingored
Rank: Advanced Member
Groups: Registered
Joined: 7/4/2012(UTC) Posts: 35
Was thanked: 2 time(s) in 2 post(s)
|
When using the MSTest ExpectedException NCrunch seems to ignore the attribute in derived methods.
See the following example. The tests run with MSTest, but fail with NCrunch.
regards
Wilhelm
public abstract class ExpectedExceptionTestsBase40: TestFrame { [ExpectedException(typeof(InvalidOperationException))] public virtual void TestMethod_Expexts_InvalidOperationException() { throw new InvalidOperationException(); } }
[Log] [TestClass] public class ExpectedExceptionTests40: ExpectedExceptionTestsBase40 { [TestMethod] public override void TestMethod_Expexts_InvalidOperationException() { base.TestMethod_Expexts_InvalidOperationException(); } }
|
|
|
|
Rank: NCrunch Developer
Groups: Administrators
Joined: 4/16/2011(UTC) Posts: 7,217
Thanks: 975 times Was thanked: 1305 time(s) in 1210 post(s)
|
Hi,
Thanks for sharing this issue.
This looks like a simple misalignment in NCrunch's MSTest emulation. I'll see that it gets fixed in the next version of NCrunch.
|
|
|
|
NCrunch Forum
»
General Support
»
Build/Test Issues
»
ExpectedException inheritance ingored
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.NETThis page was generated in 0.020 seconds.