Reputation: 321
I currently working on Unit Test App (Windows Universal) project using .NET Framework 4.6. I would like to add ExpectedException attribute on my test method, but it seems I cannot found the attribute within its Microsoft.VisualStudio.TestPlatform.UnitTestFramework namespace. Anyone have an answer for this issue?
Upvotes: 2
Views: 238
Reputation: 11287
ExpectedExeception
attribute was removed/never added to the windows runtime. use Assert.ThrowsException
instead.
Upvotes: 4