Udostępnij za pośrednictwem


TestContext.Properties Property

When overridden in a derived class, gets the test properties.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.SmartDevice.UnitTestFramework (in Microsoft.VisualStudio.SmartDevice.UnitTestFramework.dll)

Syntax

'Declaration
Public MustOverride ReadOnly Property Properties As IDictionary
'Usage
Dim instance As TestContext 
Dim value As IDictionary 

value = instance.Properties
public abstract IDictionary Properties { get; }
public:
virtual property IDictionary^ Properties {
    IDictionary^ get () abstract;
}
public abstract function get Properties () : IDictionary

Property Value

Type: System.Collections.IDictionary
An IDictionary object that contains key/value pairs that represent the test properties.

Remarks

This member contains the test and run context. Each entry in this collection is a Generic KeyValuePair<TKey, TValue> that contains a key string and an object value. The following is a list of possible TestContext property keys:

  • TotalAgents

  • ControllerName

  • AgentWeighting

  • AgentName

  • TestDeploymentDir

  • AgentId

  • TestLogsDir

  • TestDir

  • TestName

.NET Framework Security

See Also

Reference

TestContext Class

TestContext Members

Microsoft.VisualStudio.TestTools.UnitTesting Namespace

Other Resources

Using the TestContext Class