PexObserve Class
Static class that contains methods to record values computed during test execution.
Assembly: Microsoft.Pex.Framework (in Microsoft.Pex.Framework.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | Context | Gets the current observer context |
| Name | Description | |
|---|---|---|
![]() ![]() | IsInlineValidationSupported(Type^) | Determines whether inline validation can be applied to this type. |
![]() ![]() | NewTest() | Initializes a new test containing observed values. |
![]() ![]() | NewTest(NamedValues^, PexObservedValues^) | Initializes a new test containing observed values. |
![]() ![]() | Value<T>(String^, T) | Logs a value for viewing and performs inline validation if the type is supported. |
![]() ![]() | ValueAtEndOfTest<T>(String^, T) | Logs the value at the end of a test |
![]() ![]() | ValueForViewing(String^, String^) | Logs a string value in the parameter table. |
![]() ![]() | ValueForViewing(String^, String^, array<Object^>^) | Logs a value in the parameter table. |
![]() ![]() | ValueForViewing<T>(String^, T) | Logs a value of T in the parameter table. |
As Pex explores the code, PexObserve methods record Pex-generated values using their formatted string representations. Pex displays the values in Visual Studio and records them in the HTML reports.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


