System.IO (检查文件是否存在,目录是否存在,创建目录等),我们需要为这个类创建单元测试。我加了一句 System.Fakes Directory.Exists 例如,或 Directory.CreateDirectory 使用某个参数调用。这些电话是内部的。
System.IO
System.Fakes
Directory.Exists
Directory.CreateDirectory