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