jeudi 28 janvier 2016

The test method is not being shown in test explorer VS2013

I'm at the beginning of testing a calculation method. I did clean, rebuild, x64 adjustments to the project and i have nunit test adapter and other related dlls yet i still cannot see the test method in test explorer pane. Could someone help, is there something missing about the code or what?

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));
        }
    }
}

Aucun commentaire:

Enregistrer un commentaire