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();
        }
示例#2
0
 public void Then_file_should_be_closed()
 {
     FileStreamClient.Verify(fileStreamClient => fileStreamClient.Close());
 }
示例#3
0
 public void Then_file_for_writing_should_be_opened()
 {
     FileStreamClient.Verify(fileStreamClient =>
                             fileStreamClient.Open(currentPosition));
 }