#369 Length of "Test function property"

closed-invalid
nobody
nunit-gui (72)
5
2009-08-06
2009-08-06
Milan Vuk
No

Hi all,

I am new to NUnit comunity and I tried to write comments for one test function and I used:
[Test, Property("I am description I am description ... ", "")]
public void func_Test_Add()
{
...
}

in NUnit property dialog string shown is limited to araund 80 character so message simular to "I am description I am description I am description I am description I am description ...." will not be displyed completly. How man can write test function description in order to be visible from NUnit or log files ?

BR,
Milan.

Discussion

  • Charlie Poole
    Charlie Poole
    2009-08-06

    Please use the nunit-discuss google group for discussions of how to use NUnit.

    In the case of your example, you are specifying a property whose *name* is "I am description I am description ..." and whose value is the empty string. This is probably not what you want. :-)

    The constructor form is Property(string name, string value)

    But for a description, you should just use DescriptionAttribute.

    Charlie

     
  • Charlie Poole
    Charlie Poole
    2009-08-06

    • status: open --> closed-invalid