I've been using MSpec for a little while and I really like it. I've found that to get ReSharper to recognize my specifications, I need to use a SubjectAttribute
.
I'm wondering though, what's the best thing to put in the [Subject()]
attributes?
If I'm doing BDD, then I don't know the type under test so [Subject(typeof(thingy))]
seems premature. Could be added later I suppose once the code is written.
So that leaves the text version, [Subject("some text")]
. But what's the best thing to put there?
Whatever I do, it doesn't seem to affect the output I get in ReSharper. I suppose to some extent this is down to personal preference, but I wondered if there was any convention here?