예제 #1
0
        public void AddParameter_ShouldAddToInteralDictionary()
        {
            var         subject     = new NUnitRunner();
            string      param       = "singleParam";
            string      value       = "val";
            NUnitRunner nUnitRunner = subject.AddParameter(param, value);

            Assert.That(nUnitRunner, Is.SameAs(subject));
            Assert.That(nUnitRunner._argumentBuilder.FindByName(param), Is.EqualTo(value));
        }
예제 #2
0
        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));
        }