protected override void Establish_context() { base.Establish_context(); for (int i = 0; i < streamsCount; i++) { FileStreamClient newClient = new FileStreamClient(FilePathSource.Object); fileStreamsClients.Add(newClient); } copyToStream = new MemoryStream(); }
public void Then_file_should_be_closed() { FileStreamClient.Verify(fileStreamClient => fileStreamClient.Close()); }
public void Then_file_for_writing_should_be_opened() { FileStreamClient.Verify(fileStreamClient => fileStreamClient.Open(currentPosition)); }