Read the sentence.

Once the scientist completed to assemble the components, she tested her new device to see if it performed as expected.

What is the best word to replace the infinitive in the sentence?

A. assembling
B. assembled