【发布时间】:2020-01-07 03:23:03
【问题描述】:
我正在尝试在我的 Unity 项目(Unity 版本 2019.2.2f1)中使用 NSubstitute。无论如何导入它,当我尝试 using NSubstitute 说 NSubstitute 未定义时,我的 IDE(Visual Studio 和 JetBrains Rider)都会出错。
我尝试了许多 NSubstitute 软件包的选项和版本(4.2.1 和 2.0.3)。我还将包的 net35 文件夹中的 dll 文件导入到我的 Unity 项目中的 Plugins 文件夹中。我还尝试在 IDE 中使用 Nuget 安装相同版本的 NSubstitute。
【问题讨论】:
标签: c# unit-testing unity3d nsubstitute