试图在我的自动化测试中使用以下方法执行内存泄漏检查
LaunchApplication();public void GetSnapshot() snapshot1 = dotMemory.Checkcontrols work and values are returned as expected
[ Test, Ord
在XUnit测试项目中,我希望跳过一个必须在DotMemory单元下运行的理论,当测试不是在DotMemory单元下运行时。dotMemoryApi.IsEnabled) Assert.True(false, "DotMemory API not enabled"); // otherwise, proceed with dotMemory unit test calls 这是可行的,但我更希望在不使用DotMemory