Relative Content

Tag Archive for c#unit-testingmemorystream

How to mock returning a memorystream multiple times?

I have this call to an external source that returns a FileResponse object that also contains a Stream object. To Mock it I use a MemoryStream object and that works as long as the test is focused on one item.