Сообщение: аргументы не были предоставлены-параметры динамических данных nunit, c#.visual studio
Помогите!!!!
Мне нужна помощь, так как я не вижу, где я не дотягиваю до параметризованных тестов Nunit.Я получаю сообщение об ошибке "никаких аргументов не предоставлено"
Что я уже пробовал:
[Setup] public static IEnumerable ReturnValuesToTest(XmlNode node3) { foreach (XmlNode node in node3) { //this gets the username and Password from the xml node foreach (string Browser in browsers) { //loops through repository of browsername.... yield return new BrowserTesting(username,password,browser); // returns values to constructor. } } } public class BrowserTesting { private string newuser; private string newpassword; private string newbrowser; public BrowserTesting(string newuser, string newpassword, string newbrowser) { this.newuser = newuser; this.newpassword = newpassword; this.newbrowser = newbrowser; TestBase.BrowserTest(this.newuser, this.newpassword, this.newbrowser); // call the Testmethod accepting parameters } } [Test] [TestCaseSource(typeof(BrowserTesting),"BrowserTesting")] public static void BrowserTest(string User, string Password, string Browser) { // pull up the url in different browsers with the same User and password parameter. }
Richard MacCutchan
Где происходит эта ошибка?