Reading file stream multiple times causes "stream not readable" error – Asp.net
I'm trying to mock a read operation by using file stream in unit test. Below is the simplified code in application. using (var stream = await client.OpenReadAsync()) { using (StreamReader reader = new StreamReader(stream)) { // read a line record…