8
如何使用Moq模拟ConfigurationManager.AppSettings
我被困在我不知道如何嘲笑的代码上: ConfigurationManager.AppSettings["User"]; 我必须模拟ConfigurationManager,但没有任何线索,我正在使用Moq。 有人可以给我小费吗?谢谢!
122
c#
unit-testing
moq