ACPTest.UITesting.ExtendSentenceAfterPasting C# (CSharp) Method

ExtendSentenceAfterPasting() private method

private ExtendSentenceAfterPasting ( ) : void
return void
        public void ExtendSentenceAfterPasting()
        {
            this.UIMap.LaunchMicrosoftWord();
            UIMap.ExtendSentenceAfterPasting();
            UIMap.SaveDocument(directory + fileName);
            UIMap.ExitWindow();

            String output = UIMap.readFile(directory + fileName + ".txt");
            String expected = "In 2003, Jobs was diagnosed with a pancreas neuroendocrine tumor. Though it was initially treated, he reported a hormone imbalance, underwent a liver transplant in 2009, and appeared progressively thinner as his health declined. On medical leave for most of 2011, Jobs resigned as Apple CEO in August that year and was elected Chairman of the Board. He died of respiratory arrest related to his metastatic tumor on October 5, 2011.";
            File.Delete(directory + fileName + ".txt");

            Assert.AreEqual(output.Trim().ToLower(), expected.Trim().ToLower());
        }