Class TestContext.PropertyBagAdapter
Inheritance
TestContext.PropertyBagAdapter
Assembly: nunit.framework.dll
Syntax
public class TestContext.PropertyBagAdapter
Constructors
View Source
PropertyBagAdapter(IPropertyBag)
Declaration
public PropertyBagAdapter(IPropertyBag source)
Parameters
Properties
View Source
this[string]
Returns a collection of properties
with the given key
.
Declaration
public IEnumerable<object> this[string key] { get; }
Parameters
Type |
Name |
Description |
string |
key |
|
Property Value
View Source
Keys
Returns a collection of the property keys.
Declaration
public ICollection<string> Keys { get; }
Property Value
Methods
View Source
ContainsKey(string)
Declaration
public bool ContainsKey(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
View Source
Count(string)
Returns the count of elements with the given key
.
Declaration
public int Count(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
View Source
Get(string)
Get the first property with the given key
, if it can be found, otherwise
returns null.
Declaration
public object? Get(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns