1
可以以某种方式从我的垫片的内部调用默认方法吗?垫片使用默认方法实现
我试过这个,但它不起作用。
ShimConfigurationHelper.GetConfigValueString = (key) {
switch (key)
{
case "SpecialKey":
return "some-value-for-testing";
default:
return ConfigurationHelper.GetConfigValue(key);
}
};