nunit / docs

Documentation for all active NUnit projects
https://docs.nunit.org
MIT License
602 stars 155 forks source link

Add explanation for what TestOf really does #135

Open cmeeren opened 8 years ago

cmeeren commented 8 years ago

In the documentation for TestOf, it isn't explained what it actually does. Is it just a strongly typed way of stating, for human readers, the class that is tested? Or does it have more functional uses?

CharliePoole commented 8 years ago

It's just a notation for human readers. We'll update the text to explain that.

Vankog commented 6 years ago

Readers of what part? The code? Or are there any other places this attribute shows up? I'm using ReSharper and have not yet found any labels or such things.

CharliePoole commented 6 years ago

Primarily readers of program output that includes the info. The NUnit V2 GUI displayed all properties of the test, including this one. The GUI under development will do the same. Of course, you would see it in the code as well. 😄

mpleis commented 5 years ago

TestOf appears to have some function in the TSL (Test selection Language) in nunit3_console.

CharliePoole commented 5 years ago

@mpleis TestOf has no particular function in TSL. Of course, it does create a Property on the test where it is used and it is possible to select by property. Folks often do this with Category and even Description. Is that what you are referencing?

mpleis commented 5 years ago

Yep, pretty much; nice to have options.