I have created a API tests using RestSharp for test automation
I want to create a test where I Assert that and I get the correct image from a GET request in the response
client = new RestClient(ConfigurationHelper.GetValue("BaseURL"));
client.Authenticator = new NtlmAuthenticator((Domain + User), Password);
request = new RestRequest(EndPoint, Method.GET);
IRestResponse restResponse = await client.ExecuteAsync(request);
var response = restResponse.Content;
However when I set a breakpoint at the last line, the response content is displayed as a string
How can I assert this correctly? Or is there a better way to send the GET request and assert the response as an image