ITestDataSourceEmptyDataSourceExceptionInfo Interface
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.
Optional capability for a custom ITestDataSource to provide richer information when the data source
returns no rows. When a data source implements this interface, MSTest uses the returned member and type names to
build a more actionable exception message instead of the generic GetData returned empty collection message.
public interface ITestDataSourceEmptyDataSourceExceptionInfo
[System.Diagnostics.CodeAnalysis.Experimental("MSTESTEXP", UrlFormat="https://aka.ms/mstest/diagnostics#{0}")]
public interface ITestDataSourceEmptyDataSourceExceptionInfo
type ITestDataSourceEmptyDataSourceExceptionInfo = interface
[<System.Diagnostics.CodeAnalysis.Experimental("MSTESTEXP", UrlFormat="https://aka.ms/mstest/diagnostics#{0}")>]
type ITestDataSourceEmptyDataSourceExceptionInfo = interface
Public Interface ITestDataSourceEmptyDataSourceExceptionInfo
- Derived
- Attributes
Methods
| Name | Description |
|---|---|
| GetPropertyOrMethodContainerTypeNameForEmptyDataSourceException(MethodInfo) |
Returns the type name on which the method/property accessed by this data source exists. |
| GetPropertyOrMethodNameForEmptyDataSourceException() |
Returns the method/property name accessed by this data source. For example, for DynamicDataAttribute, that will be the attribute argument. |