public void SetAddsNewSingleValue() { bag.Set("Zip", "ZAP"); Assert.That(bag["Zip"].Count, Is.EqualTo(1)); Assert.That(bag["Zip"], Has.Member("ZAP")); Assert.That(bag.Get("Zip"), Is.EqualTo("ZAP")); }
public TestParameters(Exception exception) : this(RunState.NotRunnable, NoArguments) { Properties = new PropertyBag(); Properties.Set(PropertyNames.SkipReason, ExceptionHelper.BuildMessage(exception)); Properties.Set(PropertyNames.ProviderStackTrace, ExceptionHelper.BuildStackTrace(exception)); }
/// <summary> /// Construct a non-runnable ParameterSet, specifying /// the provider exception that made it invalid. /// </summary> public TestParameters(Exception exception) { RunState = RunState.NotRunnable; Properties = new PropertyBag(); Properties.Set(PropertyNames.SkipReason, ExceptionHelper.BuildMessage(exception)); Properties.Set(PropertyNames.ProviderStackTrace, ExceptionHelper.BuildStackTrace(exception)); }