docs icon indicating copy to clipboard operation
docs copied to clipboard

Add explanation for what TestOf really does

Open cmeeren opened this issue 8 years ago • 6 comments

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?

cmeeren avatar Nov 03 '16 14:11 cmeeren

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

CharliePoole avatar Nov 03 '16 14:11 CharliePoole

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.

Vankog avatar Apr 05 '18 20:04 Vankog

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. 😄

CharliePoole avatar Apr 05 '18 23:04 CharliePoole

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

mpleis avatar Oct 07 '19 23:10 mpleis

@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?

CharliePoole avatar Oct 08 '19 06:10 CharliePoole

Yep, pretty much; nice to have options.

mpleis avatar Oct 08 '19 16:10 mpleis