When i send the report to my manager they would like descriptive
report which assertion had passed. Some time we have multiple
assertions in a single test, which once passed should be published in
the report.

When it is data driven for which all data the test passed.For my
application the dataset is usually between 10 to 20. for huge amount
of data i would avoid this approach of putting in the report.


If there is an Assert.Pass that will do.

thanks
TK

On May 16, 10:00 pm, Jeff Brown <[email protected]> wrote:
> 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