mercredi 4 février 2015

passing parameters to nunit console tool

I would like to know if its possible to send parameters via nunit console app and then use the parameters to do the testing.


This is the test method I have:



namespace MyUnitTest.Tests
{
public class QuestsTests
{
[TestFixture]
public class QuestionsTests
{
public void CountQuestions(int ID, int expectedCount)
{
var ops = new Ops(siteID);

var questCount = ops.GetSurveyQuestionsCount();

Assert.That(questCount, Is.EqualTo(expectedCount));
}
}
}
}


Now, if I want to run the tests via console, this is how the command is set at this time:


enter image description here


What are my options now for submitting parameters to the test fixture?


Thanks in advance, Laziale


Aucun commentaire:

Enregistrer un commentaire