The only way to do this would be to modify MbUnit itself.  Why do you need
pass messages?  It could end up being very verbose...

Jeff.

On Mon, May 16, 2011 at 5:08 AM, tk <[email protected]> wrote:

> Hi
>
> Is it possible to have a pass message in the result file when assert
> passes. currently there is only provision for showing message only if
> assertion fails
>
> Example
> Assert.IsTrue(bValue,"bValue had wrong value");
>
> only if the assertion fails message  "bValue had wrong value" is shown
> in the result file.
>
> Is there a way to sent a pass message if the assertion passes.
>
> currently this is what i am doing i which i could avoid
>
> if (bValue ==true)
> {
>   Assert.IsTrue(bValue)
>  TestLog.WriteLine(" Passed the test");
> }
> else
> {
>   Assert.Fail("bValue failed)
> }
>
> Thanks
> Tk
>
> --
> You received this message because you are subscribed to the Google Groups
> "MbUnit.User" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/mbunituser?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"MbUnit.User" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mbunituser?hl=en.

Reply via email to