ITestDataSourceEmptyDataSourceExceptionInfo Interface

Definition

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.

Applies to