Sangadji
Sangadji

Reputation: 321

ExpectedException attribute is not present yet in Unit Test App (Windows Universal)?

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

Answers (1)

O.O
O.O

Reputation: 11287

ExpectedExeception attribute was removed/never added to the windows runtime. use Assert.ThrowsException instead.

Upvotes: 4

Related Questions