public void BuildArgs_ShouldConstructWithFileToTest()
        {
            string pathToFile = "c:\\test.dll";
            var    subject    = new NUnitRunner().FileToTest(pathToFile);

            subject.BuildArgs();
            Assert.That(subject._argumentBuilder.Build(), Is.EqualTo(pathToFile + " /nologo /nodots /xmlconsole"));
        }
        public void AddSingleParameter_ShouldAddToInteralDictionary()
        {
            var         subject     = new NUnitRunner();
            string      singleparam = "singleParam";
            NUnitRunner nUnitRunner = subject.AddParameter(singleparam);

            subject.BuildArgs();
            Assert.That(nUnitRunner, Is.SameAs(subject));
            Assert.That(nUnitRunner._argumentBuilder.FindByName(singleparam), Is.EqualTo(null));
        }
        public void BuildArgs_ShouldConstructWithFileToTestAndNameValueParameter()
        {
            string pathToFile = "c:\\test.dll";
            string name       = "label";
            string value      = "value";
            var    subject    = new NUnitRunner().FileToTest(pathToFile).AddParameter(name, value);

            subject.BuildArgs();
            Assert.That(subject._argumentBuilder.Build(), Is.EqualTo(pathToFile + " /" + name + ":" + value + " /nologo /nodots /xmlconsole"));
        }