单元测试应用程序(Windows 通用)中尚不存在 ExpectedException 属性?
ExpectedException attribute is not present yet in Unit Test App (Windows Universal)?
我目前正在使用 .NET Framework 4.6 开发单元测试应用程序(Windows 通用)项目。我想在我的测试方法中添加 ExpectedException 属性,但我似乎无法在其 Microsoft.VisualStudio.TestPlatform.UnitTestFramework 命名空间中找到该属性。有人对此问题有答案吗?
ExpectedExeception
属性已 removed/never 添加到 windows 运行时。请改用 Assert.ThrowsException
。
我目前正在使用 .NET Framework 4.6 开发单元测试应用程序(Windows 通用)项目。我想在我的测试方法中添加 ExpectedException 属性,但我似乎无法在其 Microsoft.VisualStudio.TestPlatform.UnitTestFramework 命名空间中找到该属性。有人对此问题有答案吗?
ExpectedExeception
属性已 removed/never 添加到 windows 运行时。请改用 Assert.ThrowsException
。