如果我发表以下声明:
StringBuilder
我得到一些类似的东西(从意大利语翻译):
StringBuilder u = new StringBuilder(); // notice the change to StringBuilder here
StringBuilder l = new StringBuilder();
String s = inp2.nextLine();
for (int j = 0 ; j < s.length() ; j ++) {
char ch = s.charAt(j);
if (Character.isLowerCase(ch))
l.append(ch);
else u.append(ch);
}
我找到了一种基于每个项目安装NUnit的方法:
C:\tmp> dotnet new nunit
但这在这里无济于事,因为我需要它来创建一个项目,即在该项目存在之前。相反,似乎“添加包”只是将NUnit添加到现有项目中。
dotnet核心版本:2.1.202
答案 0 :(得分:0)
您可以通过dotnet new -l
在计算机上查看可用项目模板的列表。然后,如果此列表中未显示nunit软件包,则应该可以通过dotnet new -i NUnit3.DotNetNew.Template
安装它。其他信息可以在这里https://github.com/nunit/dotnet-new-nunit