BrokeredServiceContractTestBase<TInterface,TServiceMock>.AssertEventRaisedAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
AssertEventRaisedAsync(Action<TInterface,EventHandler>, Action<TInterface,EventHandler>, Action<TServiceMock>) |
予期されるデータを使用してイベントが発生することをアサートします。 |
AssertEventRaisedAsync<TEventArgs>(Action<TInterface,EventHandler<TEventArgs>>, Action<TInterface,EventHandler<TEventArgs>>, Action<TServiceMock>, Action<TEventArgs>) |
予期されるデータを使用してイベントが発生することをアサートします。 |
AssertEventRaisedAsync(Action<TInterface,EventHandler>, Action<TInterface,EventHandler>, Action<TServiceMock>)
予期されるデータを使用してイベントが発生することをアサートします。
protected System.Threading.Tasks.Task AssertEventRaisedAsync (Action<TInterface,EventHandler> addHandler, Action<TInterface,EventHandler> removeHandler, Action<TServiceMock> triggerEvent);
member this.AssertEventRaisedAsync : Action<'Interface, EventHandler (requires 'Interface : null)> * Action<'Interface, EventHandler (requires 'Interface : null)> * Action<#'Interface> -> System.Threading.Tasks.Task
Protected Function AssertEventRaisedAsync (addHandler As Action(Of TInterface, EventHandler), removeHandler As Action(Of TInterface, EventHandler), triggerEvent As Action(Of TServiceMock)) As Task
パラメーター
- addHandler
- Action<TInterface,EventHandler>
指定したハンドラーを のイベント ClientProxyに追加できるデリゲート。
- removeHandler
- Action<TInterface,EventHandler>
のイベント ClientProxyから指定されたハンドラーを削除できるデリゲート。
戻り値
Taskテスト メソッドによって待機する必要がある 。
適用対象
AssertEventRaisedAsync<TEventArgs>(Action<TInterface,EventHandler<TEventArgs>>, Action<TInterface,EventHandler<TEventArgs>>, Action<TServiceMock>, Action<TEventArgs>)
予期されるデータを使用してイベントが発生することをアサートします。
protected System.Threading.Tasks.Task AssertEventRaisedAsync<TEventArgs> (Action<TInterface,EventHandler<TEventArgs>> addHandler, Action<TInterface,EventHandler<TEventArgs>> removeHandler, Action<TServiceMock> triggerEvent, Action<TEventArgs> argsAssertions);
member this.AssertEventRaisedAsync : Action<'Interface, EventHandler<'EventArgs> (requires 'Interface : null)> * Action<'Interface, EventHandler<'EventArgs> (requires 'Interface : null)> * Action<#'Interface> * Action<'EventArgs> -> System.Threading.Tasks.Task
Protected Function AssertEventRaisedAsync(Of TEventArgs) (addHandler As Action(Of TInterface, EventHandler(Of TEventArgs)), removeHandler As Action(Of TInterface, EventHandler(Of TEventArgs)), triggerEvent As Action(Of TServiceMock), argsAssertions As Action(Of TEventArgs)) As Task
型パラメーター
- TEventArgs
デリゲートの EventHandler<TEventArgs> 型引数。
パラメーター
- addHandler
- Action<TInterface,EventHandler<TEventArgs>>
指定したハンドラーを のイベント ClientProxyに追加できるデリゲート。
- removeHandler
- Action<TInterface,EventHandler<TEventArgs>>
のイベント ClientProxyから指定されたハンドラーを削除できるデリゲート。
- argsAssertions
- Action<TEventArgs>
イベントと共に送信されたデータに対するアサーションを含む を実行するデリゲート。
戻り値
Taskテスト メソッドによって待機する必要がある 。