public async Task TestExecuteCallsExecuteStatement() { mockSession.Setup(s => s.ExecuteStatementAsync(It.IsAny <string>(), It.IsAny <string>(), It.IsAny <List <IIonValue> >(), It.IsAny <CancellationToken>())) .ReturnsAsync(new ExecuteStatementResult { FirstPage = new Page { NextPageToken = "nextPageToken", Values = new List <ValueHolder>() } }); var result = await asyncTransaction.Execute("statement"); mockSession.Verify(s => s.ExecuteStatementAsync(TxnId, "statement", It.IsAny <List <IIonValue> >(), It.IsAny <CancellationToken>())); Assert.IsNotNull(result); }