Assert.Inconclusive does not display message.

Asked by Ryan Andres

In following test, the Fail will display my message in nunit gui.
However, if I comment out the Fail Assert, the Inconclusive Assert displays nothing and the test's icon is a question mark.

Is this the correct behavior? How can I display the Inconclusive message?

        [Test]
        public void Temp()
        {
            Assert.Fail("My Fail Message");
            Assert.Inconclusive("My Inconclusive Message");
        }

I am using NUnit 2.6 with VS 2010 SP1 on Windows 7

Question information

Language:
English Edit question
Status:
Solved
For:
NUnit V2 Edit question
Assignee:
No assignee Edit question
Solved by:
Charlie Poole
Solved:
Last query:
Last reply:
Revision history for this message
Best Charlie Poole (charlie.poole) said :
#1

Actually, you'll find that the message is displayed, but only in the test properties window, which you can bring up from the context menu for that test. By design, only errors and failures display in the errors and failures window, while only tests not run display in the not run tab.

An inconclusive result is intended to be for something that you don't want to have a lot of visibility on. In a normal test, it's best for hiding limiting output, when the point of failure is better covered by another test. In Theories, inconclusive basically means irrelevant and only causes the theory to fail if all the sub-cases were inconclusive.

Revision history for this message
Ryan Andres (7vd-dh7-gw0) said :
#2

Thanks Charlie Poole, that solved my question.