运行测试项目时,出现错误“无法初始化客户端代理:无法连接到测试过程”。

时间:2019-10-03 09:08:34

标签: c# unit-testing uwp

在添加我的应用程序的引用时尝试进行单元测试会引发错误。

有效负载包含两个或多个文件,这些文件具有相同的目标路径“ Properties \ Default.rd.xml”。源文件:

protocol Info {
    var name: String { get }
    var serial: Int { get }
}

struct Person: Info, CustomStringConvertible { // notice that Person now conforms to CustomStringConvertible
    var name = ""
    var serial = 0
}

// the extension only applies to objects that themselves conform to CustomStringConvertible
extension Info where Self: CustomStringConvertible  {
    var description: String {
        return "\(name) + \(serial)"
    }
}

因此,我将D:\Test\MyAppTesting\Properties\Default.rd.xml D:\Test\MyApp\Properties\Default.rd.xml 构建操作更改为无。

现在这就是输出窗口中显示的内容 Output window

我的测试未运行

Output window new output

0 个答案:

没有答案