Closed markvogt closed 7 years ago
Intellisense is fantastic :-) It actually tries to tell you there is no ExpectedException attribute in NUnit3 and indeed it is correct :-)
It has been deprecated, and you should use the Assert.Throw, see https://github.com/nunit/docs/wiki/Assert.Throws and https://github.com/nunit/docs/wiki/Assert.ThrowsAsync or Assert.That ( somemethod, Throws ) instead, see https://github.com/nunit/docs/wiki/ThrowsConstraint
I see you say you use NUnit 3 adapter, and then you also use NUnit3.
Osiris, Thanks ! -Mark
SHORT STORY: VS2015 Intellisense with JUnit package added to solution DOES recognize [Test] atttribute, but DOESN'T recognise [ExpectedException(typeof(stuff))] or [Test, ExpectedException(typeof(stuff))] :-( ...
DETAILS:
RESULT
BUT
... when I try to create an EXCEPTION test class and decorate that method with [ExpectedException], as soon as I start typing "[Exp"... Intellisense stops returning any results :-( .
Thoughts?
Mark in North Aurora