public async Task Exec_StaticMethodSyncExecMode_CallsSyncMethod() { string arg = "foo"; string result = await this.Exec(() => StaticSUT.Method(arg), useAsync : false); Assert.Equal(arg + "Sync", result); }
public Task Exec_ThrowsOriginalException(bool useAsync) { return(Assert.ThrowsAsync <InvalidOperationException>(() => this.Exec(() => StaticSUT.Method(), useAsync))); }