Class XpingTestFixture
Provides a base test fixture class for the Xping SDK environment.
public class XpingTestFixture : IEnumerable, IDisposable
- Inheritance
-
XpingTestFixture
- Implements
- Derived
- Inherited Members
Remarks
This class is designed to streamline the setup and configuration of the Xping SDK for testing purposes. It uses lazy initialization to ensure resources are created efficiently and only when needed. Implements IDisposable for proper resource cleanup after testing.
The main purpose of this class is to provide an instance of the TestAgent class to the tests, ensuring that all necessary dependencies are available and properly configured.
Constructors
XpingTestFixture()
Creates a new instance of this class.
public XpingTestFixture()
Methods
ConfigureHost(IHostBuilder)
Gives a fixture an opportunity to configure the host before it gets built.
protected virtual void ConfigureHost(IHostBuilder builder)
Parameters
builder
IHostBuilderThe IHostBuilder for the host.
Dispose()
Releases the resources used by this fixture.
public void Dispose()
Dispose(bool)
Releases the resources used by the XpingIntegrationTestFixture.
protected virtual void Dispose(bool disposing)
Parameters
disposing
boolA flag indicating whether to release the managed resources.
GetEnumerator()
Returns an enumerator that iterates through the test fixture data collection.
public virtual IEnumerator GetEnumerator()
Returns
- IEnumerator
An IEnumerator object that can be used to iterate through the test fixture data collection.
Remarks
This method is designed to return an instance of the Xping TestAgent for use in tests.