<PackageReference Include="NUnit" Version="4.4.0-beta.1" />

IPropertyBag

public interface IPropertyBag : IXmlNodeBuilder
IList this[string key] { get; set; }

ICollection<string> Keys { get; }

Gets a collection containing all the keys in the property set

void Add(string key, object value)

Adds a key/value pair to the property bag

bool ContainsKey(string key)

Gets a flag indicating whether the specified key has any entries in the property set.

object Get(string key)

Gets a single value for a key, using the first one if multiple values are present and returning null if the value is not found.

void Set(string key, object value)

Sets the value for a key, removing any other values that are already in the property set.

bool TryGet(string key, out IList values)

Tries to retrieve list of values.