title: How to unit test this function?
body: <p>I am trying to write unit testing for the following code:</p>
  <p>This is my logic</p>
  <pre><code>public async Task RemoveUser(string id)
  {
      var response = await _graphQLClient.SendMutationAsync&lt;Response&gt;(request);
      if (response.Errors != null)
      {
           throw new ClientException(errorMessages);
      }
  }
  </code></pre>
  <p>This is my unit testing</p>
  <pre><code>[Test]
  public void RemoveUser_ShouldCancelUserOnSucessfulRemoval()
  {
       _mockGraphQLClient
                  .Setup(client =&gt; client.SendMutationAsync&lt;object&gt;(It.IsAny&lt;GraphQLRequest&gt;(), It.Is&lt;CancellationToken&gt;(token =&gt; token == default)))
                  .ReturnsAsync( new GraphQLResponse&lt;object&gt;());
  
       var psClient = new PsClient(_mockGraphQLClient.Object);
       var removeUserResults = psClient.RemoveUser(id);
       Assert.AreEqual(removeUserResults, /* what to put here? */ );
  }
  </code></pre>
  <p>I am confused with what should I compare my results?</p>
  <p>And how to handle:</p>
  <blockquote>
  <p>&lt;System.Threading.Tasks.Task`1[System.Threading.Tasks.VoidTaskResult]</p>
  </blockquote>
  <p>?</p>