public async void TickerAsync_should_success(string jsonString, string currencyPair) { //arrange var response = TestHelper.CreateJsonResponse(jsonString); var obj = new PublicApi(TestHelper.CreateApiClientWithMockHttpAccessor(response)); //act var actual = await obj.TickerAsync(currencyPair); //assert Assert.NotNull(actual); Assert.IsAssignableFrom <TickerResponse>(actual); }