ACPTest.UITesting.RankingByFrequency C# (CSharp) Method

RankingByFrequency() private method

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

            String output = UIMap.readFile(directory + fileName + ".txt");
            String expected = "People flocked to Apple stores across the globe to leave flowers. \r\nIn reality, they knew very little about him. \r\nThat Jobs never revealed much about his politics or his personal life also meant that he could never disappoint fans' preconceived notions.";
            File.Delete(directory + fileName + ".txt");

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