1
我正在测试计算方法的开始。我对项目进行了清理,重建,x64调整,并且我有nunit测试适配器和其他相关的dll,但仍然无法在测试浏览器窗格中看到测试方法。有人可以帮忙,有没有关于代码的东西或什么?该测试方法未显示在测试资源管理器VS2013中
namespace Ninja.Tests
{
[TestFixture]
public class SinglePricingTests
{
[Test]
public void ShouldCalculate()
{
var pricingModelTest = new PricingModel();
var Sut = new PriceCalculationService(); // Sut: System under test
var Result = Sut.Calculate(pricingModelTest);
var TestParameters = new PricingCostParameters();
Assert.That(Result, Is.EqualTo(TestParameters));
}
}
}
哪个版本的VS?你想看看这个测试使用MSTest亚军或R#? – kayess
版本是2013年,我想在测试浏览器中看到测试。 – nsarchar
你是否加入了'NUnit.Framework'?另外,如果我打开测试浏览器,并重新打开所有我的测试显示。 – kayess