Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经为特定类生成了 pex 测试类。但是,由于重构和逻辑更改,我已经更改了此类,但我认为当前 pex 生成的测试类现在无法涵盖所有内容。
我如何强制 pex 为父母重新生成单独的测试类?
您可以进行如下操作:
MyClass_Test
MyClass_Test.g.cs
(理论上您不需要第 1 步,但它允许您验证测试在重新生成之前已被删除)。
我有一个 C++ 头文件,其中包含以下定义:
#define CACHE_NUM_WAYS (1<<1) #define CACHE_DATA_SIZE (1<<8)
它在其余代码中用作整数。
这是什么意思?它的价值是什么?