vb.net - How do you migrate ExpectedException's syntax from NUnit 2.2.9 to 2.6.3 -
In legacy code, using anonoot 2.2.9, the expected expiry looks like this:
& lt; Test (), Expected Exception (GetType (System.Exception), "Expected error message") & gt; Based on some research, which was finally answered, I have this: & # 39; & # 39; & # 39; Lt; Test (), Expected exception (GetType (System.Exception), expected message = "expected error message") & gt;
This generates an error: 'expected message' is not declared. Due to its security level it can be inaccessible.
I am using NUnit 2.6.3.13283 and am importing it like this: Import NUnit.Framework
.
The syntax is incorrect to access the named parameter. It should appear in VB.Net:
& lt; Test (), Expected Exception (GetType (System.Exception), Expected Message: = "asdf") & gt;
Comments
Post a Comment