TestBase Class 
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A base class that offers some commonly useful tools for testing.
public abstract class TestBase : IDisposabletype TestBase = class
    interface IDisposablePublic MustInherit Class TestBase
Implements IDisposable- Inheritance
- 
				TestBase
- Derived
- Implements
Constructors
| TestBase() | Initializes a new instance of the TestBase class. | 
Properties
| ExpectedTimeout | Gets a reasonably short time period to wait where a timeout is expected. | 
| ExpectedTimeoutToken | Gets a newly initialized CancellationToken that is canceled after ExpectedTimeout expires from the time this property is retrieved. | 
| TestStopwatch | Gets a stopwatch that is started when the test class is instantiated. | 
| TimeoutToken | Gets a token that gets canceled UnexpectedTimeout after the test class is instantiated. | 
| UnexpectedTimeout | Gets a reasonably long time period to wait where we expect some other event to occur rather than normal test execution waiting this whole time period. | 
| UnexpectedTimeoutToken | Gets a newly initialized CancellationToken that is canceled after UnexpectedTimeout expires from the time this property is retrieved. | 
Methods
| Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | 
| Dispose(Boolean) | Disposes of managed and unmanaged resources owned by this object. |